toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var accountId = this.accountId;
  var active = this.active;
  var avatarUrls = this.avatarUrls;
  var displayName = this.displayName;
  var key = this.key;
  var name = this.name;
  var self = this.self;

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