toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"bin": bin,
"masked_card": maskedCard,
"expiry_month": expiryMonth,
"expiry_year": expiryYear,
"nickname": nickname,
"brand": brand,
"card_type": cardType,
"customer": customer?.toJson(),
};