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