toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.account != null) {
json[r'account'] = this.account;
} else {
json[r'account'] = null;
}
if (this.against != null) {
json[r'against'] = this.against;
} else {
json[r'against'] = null;
}
if (this.credit != null) {
json[r'credit'] = this.credit;
} else {
json[r'credit'] = null;
}
if (this.debit != null) {
json[r'debit'] = this.debit;
} else {
json[r'debit'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.postingAt != null) {
json[r'postingAt'] = this.postingAt;
} else {
json[r'postingAt'] = null;
}
if (this.remarks != null) {
json[r'remarks'] = this.remarks;
} else {
json[r'remarks'] = null;
}
if (this.sourceId != null) {
json[r'sourceId'] = this.sourceId;
} else {
json[r'sourceId'] = null;
}
if (this.sourceKind != null) {
json[r'sourceKind'] = this.sourceKind;
} else {
json[r'sourceKind'] = null;
}
return json;
}