fromString static method

CarrierAccountType? fromString(
  1. String? value
)

Get the CarrierAccountType from a String.

Implementation

static CarrierAccountType? fromString(String? value) {
  switch (value) {
    case 'AmazonMwsAccount':
      return amazonMws;
    case 'ApcAccount':
      return apc;
    case 'AsendiaAccount':
      return asendia;
    case 'AsendiaUsaAccount':
      return asendiaUsa;
    case 'AustraliaPostAccount':
      return australiaPost;
    case 'AxlehireV3Account':
      return axlehireV3;
    case 'BetterTrucksAccount':
      return betterTrucks;
    case 'BondAccount':
      return bond;
    case 'CanadaPostAccount':
      return canadaPost;
    case 'CanparAccount':
      return canpar;
    case 'ColumbusLastMileAccount':
      return columbusLastMile;
    case 'CourierExpressAccount':
      return courierExpress;
    case 'CouriersPleaseAccount':
      return couriersPlease;
    case 'DaiPostAccount':
      return daiPost;
    case 'DeliverItAccount':
      return deliverIt;
    case 'DeutschePostUKAccount':
      return deutschePostUk;
    case 'DhlEcommerceAsiaAccount':
      return dhlEcommerceAsia;
    case 'DhlEcsAccount':
      return dhlEcs;
    case 'DhlExpressAccount':
      return dhlExpress;
    case 'DhlPaketAccount':
      return dhlPaket;
    case 'DhlParcelAccount':
      return dhlParcel;
    case 'DpdAccount':
      return dpd;
    case 'DpdUkAccount':
      return dpdUk;
    case 'EstafetaAccount':
      return estafeta;
    case 'FastwayAccount':
      return fastway;
    case 'FedexAccount':
      return fedEx;
    case 'FedexCrossBorderAccount':
      return fedExCrossBorder;
    case 'FedexMailviewAccount':
      return fedExMailview;
    case 'FedexSamedayCityAccount':
      return fedExSameDayCity;
    case 'FedexSmartpostAccount':
      return fedExSmartPost;
    case 'FirstMileConciseAccount':
      return firstMileConcise;
    case 'GlobegisticsAccount':
      return globegistics;
    case 'GsoAccount':
      return gso;
    case 'HermesAccount':
      return hermes;
    case 'InterlinkExpressAccount':
      return interlinkExpress;
    case 'LasershipV2Account':
      return lasershipV2;
    case 'LoomisExpressAccount':
      return loomisExpress;
    case 'LsoAccount':
      return lso;
    case 'NewgisticsAccount':
      return newgistics;
    case 'OmniParcelAccount':
      return omniParcel;
    case 'OntracAccount':
      return ontrac;
    case 'OptimaAccount':
      return optima;
    case 'OsmWorldwideAccount':
      return osmWorldwide;
    case 'ParcelForceAccount':
      return parcelForce;
    case 'ParcllAccount':
      return parcll;
    case 'PassportGlobalAccount':
      return passportGlobal;
    case 'PurolatorAccount':
      return purolator;
    case 'RoyalMailAccount':
      return royalMail;
    case 'RRDonnelleyAccount':
      return rRDonnelley;
    case 'SendleAccount':
      return sendle;
    case 'SfExpressAccount':
      return sFExpress;
    case 'SmartKargoAccount':
      return smartKargo;
    case 'SonicAccount':
      return sonic;
    case 'SpeedeeAccount':
      return speedee;
    case 'StarTrackAccount':
      return starTrack;
    case 'SwyftAccount':
      return swyft;
    case 'TforceConciseAccount':
      return tForceConcise;
    case 'UdsAccount':
      return uds;
    case 'UpsAccount':
      return ups;
    case 'UpsIparcelAccount':
      return upsIparcel;
    case 'UpsMailInnovationsAccount':
      return upsMailInnovations;
    case 'UpsSurepostAccount':
      return upsSurepost;
    case 'UspsAccount':
      return usps;
    case 'VehoAccount':
      return veho;
    case 'XDeliveryAccount':
      return xDelivery;
    default:
      return null;
  }
}