toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"active": encodeValue(active),
if (archivedAt != null) "archived_at": encodeValue(archivedAt),
if (bankAccount != null) "bank_account": encodeValue(bankAccount),
if (card != null) "card": encodeValue(card),
"created_at": encodeValue(createdAt),
if (customData != null) "custom_data": encodeValue(customData),
"customer_id": encodeValue(customerId),
if (ephemeral != null) "ephemeral": encodeValue(ephemeral),
if (expiresOn != null) "expires_on": encodeValue(expiresOn),
"fingerprint": encodeValue(fingerprint),
"id": encodeValue(id),
if (mobileMoney != null) "mobile_money": encodeValue(mobileMoney),
if (owner != null) "owner": encodeValue(owner),
"type": encodeValue(type),
if (supplied != null) "supplied": encodeValue(supplied),
if (verification != null) "verification": encodeValue(verification),
if (verifiedAt != null) "verified_at": encodeValue(verifiedAt),
};