toJson method
Implementation
Map<String, Object?> toJson() {
var archived = this.archived;
var description = this.description;
var expand = this.expand;
var id = this.id;
var issuesStatusForFixVersion = this.issuesStatusForFixVersion;
var moveUnfixedIssuesTo = this.moveUnfixedIssuesTo;
var name = this.name;
var operations = this.operations;
var overdue = this.overdue;
var project = this.project;
var projectId = this.projectId;
var releaseDate = this.releaseDate;
var released = this.released;
var self = this.self;
var startDate = this.startDate;
var userReleaseDate = this.userReleaseDate;
var userStartDate = this.userStartDate;
final json = <String, Object?>{};
json[r'archived'] = archived;
if (description != null) {
json[r'description'] = description;
}
if (expand != null) {
json[r'expand'] = expand;
}
if (id != null) {
json[r'id'] = id;
}
if (issuesStatusForFixVersion != null) {
json[r'issuesStatusForFixVersion'] = issuesStatusForFixVersion.toJson();
}
if (moveUnfixedIssuesTo != null) {
json[r'moveUnfixedIssuesTo'] = moveUnfixedIssuesTo;
}
if (name != null) {
json[r'name'] = name;
}
json[r'operations'] = operations.map((i) => i.toJson()).toList();
json[r'overdue'] = overdue;
if (project != null) {
json[r'project'] = project;
}
if (projectId != null) {
json[r'projectId'] = projectId;
}
if (releaseDate != null) {
json[r'releaseDate'] = releaseDate;
}
json[r'released'] = released;
if (self != null) {
json[r'self'] = self;
}
if (startDate != null) {
json[r'startDate'] = startDate;
}
if (userReleaseDate != null) {
json[r'userReleaseDate'] = userReleaseDate;
}
if (userStartDate != null) {
json[r'userStartDate'] = userStartDate;
}
return json;
}