fromWireValue static method

PaymentSheetEventType? fromWireValue(
  1. String value
)

Returns the event type represented by value, or null if unsupported.

Implementation

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