fromString static method

PrintCustomCode? fromString(
  1. String? value
)

Get the PrintCustomCode from a String.

Implementation

static PrintCustomCode? fromString(String? value) {
  switch (value) {
    case "PO":
      return PrintCustomCode.purchaseOrderNumber;
    case "DP":
      return PrintCustomCode.departmentNumber;
    case "RMA":
      return PrintCustomCode.fedexReturnMerchandiseAuthorization;
    case "AJ":
      return PrintCustomCode.upsAccountsReceivableCustomerAccount;
    case "AT":
      return PrintCustomCode.upsAppropriationNumber;
    case "BM":
      return PrintCustomCode.upsBillOfLadingNumber;
    case "9V":
      return PrintCustomCode.upsCollectOnDeliveryNumber;
    case "ON":
      return PrintCustomCode.upsDealerOrderNumber;
    case "3Q":
      return PrintCustomCode.upsFdaProductCode;
    case "IK":
      return PrintCustomCode.upsInvoiceNumber;
    case "MK":
      return PrintCustomCode.upsManifestKeyNumber;
    case "MJ":
      return PrintCustomCode.upsModelNumber;
    case "PM":
      return PrintCustomCode.upsPartNumber;
    case "PC":
      return PrintCustomCode.upsProductionCode;
    case "RQ":
      return PrintCustomCode.upsPurchaseRequestNumber;
    case "RZ":
      return PrintCustomCode.upsReturnMerchandiseAuthorization;
    case "SA":
      return PrintCustomCode.upsSalespersonNumber;
    case "SE":
      return PrintCustomCode.upsSerialNumber;
    case "ST":
      return PrintCustomCode.upsStoreNumber;
    case "TN":
      return PrintCustomCode.upsTransactionReferenceNumber;
    case "EI":
      return PrintCustomCode.uspsEmployerIdentificationNumber;
    case "TJ":
      return PrintCustomCode.uspsFederalTaxId;
    default:
      return null;
  }
}