feat: update print
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
enum BusinessType {
|
||||
restaurant('restaurant'),
|
||||
retail('retail'),
|
||||
service('service'),
|
||||
ticketing('ticketing'),
|
||||
entertainment('entertainment');
|
||||
|
||||
final String value;
|
||||
const BusinessType(this.value);
|
||||
|
||||
static BusinessType fromString(String value) {
|
||||
return BusinessType.values.firstWhere(
|
||||
(type) => type.value == value,
|
||||
orElse: () => BusinessType.restaurant,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user