fromString static method

IncotermType? fromString(
  1. String? value
)

Get the IncotermType from a String.

Implementation

static IncotermType? fromString(String? value) {
  switch (value) {
    case 'EXW':
      return exw;
    case 'FCA':
      return fca;
    case 'CPT':
      return cpt;
    case 'CIP':
      return cip;
    case 'DAT':
      return dat;
    case 'DAP':
      return dap;
    case 'DDP':
      return ddp;
    case 'FAS':
      return fas;
    case 'FOB':
      return fob;
    case 'CFR':
      return cfr;
    case 'CIF':
      return cif;
    default:
      return null;
  }
}