methodTypeFromJson function

MethodType methodTypeFromJson(
  1. String? json
)

Implementation

MethodType methodTypeFromJson(String? json) {
  switch (json) {
    case 'expressMethod':
      return MethodType.expressMethod;
    case 'customerBalance':
      return MethodType.customerBalance;
    case 'savedCard':
      return MethodType.savedCard;
    case 'paymentMethod':
      return MethodType.paymentMethod;
    case 'payoutMethod':
      return MethodType.payoutMethod;
    default:
      return MethodType.paymentMethod;
  }
}