toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.amountToPay != null) {
json[r'amountToPay'] = this.amountToPay;
} else {
json[r'amountToPay'] = null;
}
if (this.amountToRefund != null) {
json[r'amountToRefund'] = this.amountToRefund;
} else {
json[r'amountToRefund'] = null;
}
if (this.amendmentFee != null) {
json[r'amendmentFee'] = this.amendmentFee;
} else {
json[r'amendmentFee'] = null;
}
return json;
}