toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_profile != null) {
map['profile'] = _profile?.toJson();
}
if (_studentLoanAccountsSummary != null) {
map['summary'] = _studentLoanAccountsSummary?.toJson();
}
if (_loanAccounts != null) {
map['loanAccounts'] = _loanAccounts?.map((v) => v.toJson()).toList();
}
map['createdOn'] = _createdOn;
map['updatedOn'] = _updatedOn;
map['accountId'] = _accountId;
map['loanServicerId'] = _loanServicerId;
map['isLoanServicerIntegrated'] = _isLoanServicerIntegrated;
if (_connectionStatus != null) {
map['connectionStatus'] = _connectionStatus?.toJson();
}
map['accountUserName'] = _accountUserName;
return map;
}