fromString static method
- String? value
Get the NonDeliveryOption from a String.
Implementation
static NonDeliveryOption? fromString(String? value) {
switch (value) {
case 'return':
return returnToSender;
case 'abandon':
return abandon;
default:
return null;
}
}