toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['loanName'] = _loanName;
map['dueDate'] = _dueDate;
map['loanType'] = _loanType;
map['status'] = _status;
map['pendingLoanTermInMonths'] = _pendingLoanTermInMonths;
map['origAmount'] = _origAmount;
map['interestRate'] = _interestRate;
map['principalBalance'] = _principalBalance;
map['outstandingInterest'] = _outstandingInterest;
map['repaymentPlan'] = _repaymentPlan;
map['outstandingBalance'] = _outstandingBalance;
map['calculatedPriorityScore'] = _calculatedPriorityScore;
map['expectedPayoffDate'] = _expectedPayoffDate;
map['regularMonthlyPayment'] = _regularMonthlyPayment;
map['loanId'] = _loanId;
map['createdOn'] = _createdOn;
return map;
}