toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'customer_balances': customerBalances?.map((e) => e.toJson()).toList(),
'payment_methods': paymentMethods?.map((e) => e.toJson()).toList(),
'express_methods': expressMethods?.map((e) => e.toJson()).toList(),
'saved_cards': savedCards?.map((e) => e.toJson()).toList(),
'payout_methods': payoutMethods?.map((e) => e.toJson()).toList(),
};
}