fromString static method
- 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;
}
}