toJson method
Implementation
Map<String, Object?> toJson() {
var accountId = this.accountId;
var accountType = this.accountType;
var active = this.active;
var avatarUrls = this.avatarUrls;
var displayName = this.displayName;
var emailAddress = this.emailAddress;
var key = this.key;
var name = this.name;
var self = this.self;
var timeZone = this.timeZone;
final json = <String, Object?>{};
if (accountId != null) {
json[r'accountId'] = accountId;
}
if (accountType != null) {
json[r'accountType'] = accountType;
}
json[r'active'] = active;
if (avatarUrls != null) {
json[r'avatarUrls'] = avatarUrls.toJson();
}
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 (self != null) {
json[r'self'] = self;
}
if (timeZone != null) {
json[r'timeZone'] = timeZone;
}
return json;
}