toShippingOption method
Implementation
ShippingOption toShippingOption() {
switch (this) {
case 'SECOND_DAY':
return ShippingOption.secondDay;
case 'NEXT_DAY':
return ShippingOption.nextDay;
case 'EXPRESS':
return ShippingOption.express;
case 'STANDARD':
return ShippingOption.standard;
}
throw Exception('$this is not known in enum ShippingOption');
}