toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'uuid'] = this.uuid;
json[r'actionType'] = this.actionType;
json[r'actionDate'] = this.actionDate.toUtc().toIso8601String();
if (this.originatorKey != null) {
json[r'originatorKey'] = this.originatorKey;
} else {
json[r'originatorKey'] = null;
}
json[r'demandSubAccountId'] = this.demandSubAccountId;
if (this.rejectReason != null) {
json[r'rejectReason'] = this.rejectReason;
} else {
json[r'rejectReason'] = null;
}
if (this.amount != null) {
json[r'amount'] = this.amount;
} else {
json[r'amount'] = null;
}
if (this.originationFee != null) {
json[r'originationFee'] = this.originationFee;
} else {
json[r'originationFee'] = null;
}
if (this.offerClickId != null) {
json[r'offerClickId'] = this.offerClickId;
} else {
json[r'offerClickId'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
if (this.deletedAt != null) {
json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String();
} else {
json[r'deletedAt'] = null;
}
return json;
}