toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (customData != null) "custom_data": encodeValue(customData),
if (active != null) "active": encodeValue(active),
if (archived != null) "archived": encodeValue(archived),
if (owner != null) "owner": encodeValue(owner),
"payment_method_id": encodeValue(paymentMethodId),
};