fromString static method

NonDeliveryOption? fromString(
  1. 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;
  }
}