fromString static method

PaymentMethodType? fromString(
  1. String? value
)

Get the PaymentMethodType from a String.

Implementation

static PaymentMethodType? fromString(String? value) {
  switch (value) {
    case 'bank':
      return bank;
    case 'card':
      return card;
    default:
      return null;
  }
}