fromWire static method

UpiServiceMode? fromWire(
  1. String? value
)

Implementation

static UpiServiceMode? fromWire(String? value) {
  if (value == null) return null;
  switch (value.toUpperCase()) {
    case 'MANDATE':
      return UpiServiceMode.MANDATE;
    case 'REVERSE_PENNY_DROP':
      return UpiServiceMode.REVERSE_PENNY_DROP;
  }
  return null;
}