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