toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"date_created": dateCreated!.toIso8601String(),
"date_created_gmt": dateCreatedGmt!.toIso8601String(),
"amount": amount,
"reason": reason,
"refunded_by": refundedBy,
"refunded_payment": refundedPayment,
"meta_data": List<dynamic>.from(metaData!.map((x) => x)),
"line_items": List<dynamic>.from(lineItems!.map((x) => x)),
"_links": links!.toJson(),
};