toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'annualIncome'] = this.annualIncome;
json[r'creditRating'] = this.creditRating;
if (this.totalDebt != null) {
json[r'totalDebt'] = this.totalDebt;
} else {
json[r'totalDebt'] = null;
}
if (this.countOfDerogatories != null) {
json[r'countOfDerogatories'] = this.countOfDerogatories;
} else {
json[r'countOfDerogatories'] = null;
}
if (this.state != null) {
json[r'state'] = this.state;
} else {
json[r'state'] = null;
}
if (this.loanPurpose != null) {
json[r'loanPurpose'] = this.loanPurpose;
} else {
json[r'loanPurpose'] = null;
}
if (this.loanAmount != null) {
json[r'loanAmount'] = this.loanAmount;
} else {
json[r'loanAmount'] = null;
}
return json;
}