toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"id": encodeValue(id),
if (bankAccount != null) "bank_account": encodeValue(bankAccount),
if (card != null) "card": encodeValue(card),
"created_at": encodeValue(createdAt),
"customer_id": encodeValue(customerId),
if (mobileMoney != null) "mobile_money": encodeValue(mobileMoney),
if (owner != null) "owner": encodeValue(owner),
"type": encodeValue(type),
"verified": encodeValue(verified),
if (verifiedAt != null) "verified_at": encodeValue(verifiedAt),
};