fromValue static method

LiqPayAction? fromValue(
  1. String? value
)

Implementation

static LiqPayAction? fromValue(String? value) {
  if (value == null) {
    return null;
  }

  for (LiqPayAction entry in LiqPayAction.values) {
    if (entry.value == value) {
      return entry;
    }
  }

  throw ArgumentError.value(value);
}