toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var avatarUrls = this.avatarUrls;
  var id = this.id;
  var key = this.key;
  var name = this.name;
  var projectCategory = this.projectCategory;
  var projectTypeKey = this.projectTypeKey;
  var self = this.self;
  var simplified = this.simplified;

  final json = <String, Object?>{};
  if (avatarUrls != null) {
    json[r'avatarUrls'] = avatarUrls.toJson();
  }
  if (id != null) {
    json[r'id'] = id;
  }
  if (key != null) {
    json[r'key'] = key;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (projectCategory != null) {
    json[r'projectCategory'] = projectCategory.toJson();
  }
  if (projectTypeKey != null) {
    json[r'projectTypeKey'] = projectTypeKey.value;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  json[r'simplified'] = simplified;
  return json;
}