fromString static method
- String? value
Get the DropOffType from a String.
Implementation
static DropOffType? fromString(String? value) {
switch (value) {
case 'REGULAR_PICKUP':
return regularPickup;
case 'SCHEDULED_PICKUP':
return scheduledPickup;
case 'RETAIL_LOCATION':
return retailLocation;
case 'STATION':
return station;
case 'DROP_BOX':
return dropBox;
default:
return null;
}
}