toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var links = this.links;
  var id = this.id;
  var projectId = this.projectId;
  var projectKey = this.projectKey;
  var projectName = this.projectName;

  final json = <String, Object?>{};
  if (links != null) {
    json[r'_links'] = links.toJson();
  }
  if (id != null) {
    json[r'id'] = id;
  }
  if (projectId != null) {
    json[r'projectId'] = projectId;
  }
  if (projectKey != null) {
    json[r'projectKey'] = projectKey;
  }
  if (projectName != null) {
    json[r'projectName'] = projectName;
  }
  return json;
}