fromString static method

PaymentMethodPriority? fromString(
  1. String? value
)

Get the PaymentMethodPriority from a String.

Implementation

static PaymentMethodPriority? fromString(String? value) {
  switch (value) {
    case 'primary':
      return primary;
    case 'secondary':
      return secondary;
    default:
      return null;
  }
}