toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"amount": amount,
"is_partial": isPartial,
"currency_code": currencyCode,
"country_code": countryCode,
"status": status,
"payment_method_data": paymentMethodData.toJson(),
"metadata": metadata.toJson(),
"paid": paid,
"paid_at": paidAt,
};