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