fromString static method

CustomsFormType? fromString(
  1. String? value
)

Get the CustomsFormType from a String.

Implementation

static CustomsFormType? fromString(String? value) {
  switch (value) {
    case 'EEL':
      return eel;
    case 'PFC':
      return pfc;
    default:
      return null;
  }
}