toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['gender'] = this.gender;
data['jobTitle'] = this.jobTitle;
data['name'] = this.name;
data['firstName'] = this.firstName;
data['surname'] = this.surname;
data['username'] = this.username;
data['password'] = this.password;
data['phoneNumber'] = this.phoneNumber;
data['created'] = this.created;
data['lastUpdated'] = this.lastUpdated;
data['token'] = this.token;
data['tokenType'] = this.tokenType;
data['refreshToken'] = this.refreshToken;
data['phoneNumber'] = this.phoneNumber;
data['tokenExpiry'] = this.tokenExpiry;
data['authType'] = this.authType;
data['teiSearchOrganisationUnits'] = this.teiSearchOrganisationUnits;
data['organisationUnits'] = this.organisationUnits;
data['authorities'] = this.authorities;
data['roles'] = this.roles;
data['dataViewOrganisationUnits'] = this.dataViewOrganisationUnits;
data['programs'] = this.programs;
data['isLoggedIn'] = this.isLoggedIn;
data['baseUrl'] = this.baseUrl;
data['dirty'] = this.dirty;
data['userGroups'] = this.userGroups;
data['tokenExpiresAt'] = this.tokenExpiresAt;
return data;
}