fromWireValue static method

CheckoutActionType? fromWireValue(
  1. String value
)

Returns the action represented by value, or null when unsupported.

Implementation

static CheckoutActionType? fromWireValue(String value) {
  for (final type in values) {
    if (type.name == value) return type;
  }
  return null;
}