toJson method
Implementation
Map<String, Object?> toJson() {
var links = this.links;
var accountId = this.accountId;
var active = this.active;
var displayName = this.displayName;
var emailAddress = this.emailAddress;
var key = this.key;
var name = this.name;
var timeZone = this.timeZone;
final json = <String, Object?>{};
if (links != null) {
json[r'_links'] = links.toJson();
}
if (accountId != null) {
json[r'accountId'] = accountId;
}
json[r'active'] = active;
if (displayName != null) {
json[r'displayName'] = displayName;
}
if (emailAddress != null) {
json[r'emailAddress'] = emailAddress;
}
if (key != null) {
json[r'key'] = key;
}
if (name != null) {
json[r'name'] = name;
}
if (timeZone != null) {
json[r'timeZone'] = timeZone;
}
return json;
}