update
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
part of 'extension.dart';
|
||||
|
||||
extension StringX on String {
|
||||
TableStatusType toTableStatusType() {
|
||||
switch (this) {
|
||||
case 'available':
|
||||
return TableStatusType.available;
|
||||
case 'occupied':
|
||||
return TableStatusType.occupied;
|
||||
default:
|
||||
return TableStatusType.unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user