fromString static method

CodMethod? fromString(
  1. String? value
)

Get the CodMethod from a String.

Implementation

static CodMethod? fromString(String? value) {
  switch (value) {
    case 'CASH':
      return CodMethod.cash;
    case 'CHECK':
      return CodMethod.check;
    case 'MONEY_ORDER':
      return CodMethod.moneyOrder;
    default:
      return null;
  }
}