methodTypeToJson function

String? methodTypeToJson(
  1. MethodType? methodType
)

Implementation

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