fromString static method

DeliveryConfirmation? fromString(
  1. String? value
)

Get the DeliveryConfirmation from a String.

Implementation

static DeliveryConfirmation? fromString(String? value) {
  switch (value) {
    case 'SIGNATURE':
      return DeliveryConfirmation.signatureRequired;
    case 'NO_SIGNATURE':
      return DeliveryConfirmation.noSignatureRequired;
    case 'ADULT_SIGNATURE':
      return DeliveryConfirmation.uspsAdultSignature;
    case 'INDIRECT_SIGNATURE':
      return DeliveryConfirmation.fedexIndirectSignature;
    case 'DO_NOT_SAFE_DROP':
      return DeliveryConfirmation.canadaPostDoNotSafeDrop;
    case 'STANDARD_SIGNATURE':
      return DeliveryConfirmation.gs0StandardSignature;
    default:
      return null;
  }
}