toJson method
Implementation
Map<String, Object?> toJson() {
var defaultWorkflow = this.defaultWorkflow;
var description = this.description;
var draft = this.draft;
var id = this.id;
var issueTypeMappings = this.issueTypeMappings;
var issueTypes = this.issueTypes;
var lastModified = this.lastModified;
var lastModifiedUser = this.lastModifiedUser;
var name = this.name;
var originalDefaultWorkflow = this.originalDefaultWorkflow;
var originalIssueTypeMappings = this.originalIssueTypeMappings;
var self = this.self;
var updateDraftIfNeeded = this.updateDraftIfNeeded;
final json = <String, Object?>{};
if (defaultWorkflow != null) {
json[r'defaultWorkflow'] = defaultWorkflow;
}
if (description != null) {
json[r'description'] = description;
}
json[r'draft'] = draft;
if (id != null) {
json[r'id'] = id;
}
if (issueTypeMappings != null) {
json[r'issueTypeMappings'] = issueTypeMappings;
}
if (issueTypes != null) {
json[r'issueTypes'] = issueTypes;
}
if (lastModified != null) {
json[r'lastModified'] = lastModified;
}
if (lastModifiedUser != null) {
json[r'lastModifiedUser'] = lastModifiedUser.toJson();
}
if (name != null) {
json[r'name'] = name;
}
if (originalDefaultWorkflow != null) {
json[r'originalDefaultWorkflow'] = originalDefaultWorkflow;
}
if (originalIssueTypeMappings != null) {
json[r'originalIssueTypeMappings'] = originalIssueTypeMappings;
}
if (self != null) {
json[r'self'] = self;
}
json[r'updateDraftIfNeeded'] = updateDraftIfNeeded;
return json;
}