methodTypeToJson function
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;
}
}