toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var archived = this.archived;
  var archivedBy = this.archivedBy;
  var archivedDate = this.archivedDate;
  var assigneeType = this.assigneeType;
  var avatarUrls = this.avatarUrls;
  var components = this.components;
  var deleted = this.deleted;
  var deletedBy = this.deletedBy;
  var deletedDate = this.deletedDate;
  var description = this.description;
  var email = this.email;
  var expand = this.expand;
  var favourite = this.favourite;
  var id = this.id;
  var insight = this.insight;
  var isPrivate = this.isPrivate;
  var issueTypeHierarchy = this.issueTypeHierarchy;
  var issueTypes = this.issueTypes;
  var key = this.key;
  var landingPageInfo = this.landingPageInfo;
  var lead = this.lead;
  var name = this.name;
  var permissions = this.permissions;
  var projectCategory = this.projectCategory;
  var projectTypeKey = this.projectTypeKey;
  var properties = this.properties;
  var retentionTillDate = this.retentionTillDate;
  var roles = this.roles;
  var self = this.self;
  var simplified = this.simplified;
  var style = this.style;
  var url = this.url;
  var uuid = this.uuid;
  var versions = this.versions;

  final json = <String, Object?>{};
  json[r'archived'] = archived;
  if (archivedBy != null) {
    json[r'archivedBy'] = archivedBy.toJson();
  }
  if (archivedDate != null) {
    json[r'archivedDate'] = archivedDate.toIso8601String();
  }
  if (assigneeType != null) {
    json[r'assigneeType'] = assigneeType.value;
  }
  if (avatarUrls != null) {
    json[r'avatarUrls'] = avatarUrls.toJson();
  }
  json[r'components'] = components.map((i) => i.toJson()).toList();
  json[r'deleted'] = deleted;
  if (deletedBy != null) {
    json[r'deletedBy'] = deletedBy.toJson();
  }
  if (deletedDate != null) {
    json[r'deletedDate'] = deletedDate.toIso8601String();
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (email != null) {
    json[r'email'] = email;
  }
  if (expand != null) {
    json[r'expand'] = expand;
  }
  json[r'favourite'] = favourite;
  if (id != null) {
    json[r'id'] = id;
  }
  if (insight != null) {
    json[r'insight'] = insight.toJson();
  }
  json[r'isPrivate'] = isPrivate;
  if (issueTypeHierarchy != null) {
    json[r'issueTypeHierarchy'] = issueTypeHierarchy.toJson();
  }
  json[r'issueTypes'] = issueTypes.map((i) => i.toJson()).toList();
  if (key != null) {
    json[r'key'] = key;
  }
  if (landingPageInfo != null) {
    json[r'landingPageInfo'] = landingPageInfo.toJson();
  }
  if (lead != null) {
    json[r'lead'] = lead.toJson();
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (permissions != null) {
    json[r'permissions'] = permissions.toJson();
  }
  if (projectCategory != null) {
    json[r'projectCategory'] = projectCategory.toJson();
  }
  if (projectTypeKey != null) {
    json[r'projectTypeKey'] = projectTypeKey.value;
  }
  if (properties != null) {
    json[r'properties'] = properties;
  }
  if (retentionTillDate != null) {
    json[r'retentionTillDate'] = retentionTillDate.toIso8601String();
  }
  if (roles != null) {
    json[r'roles'] = roles;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  json[r'simplified'] = simplified;
  if (style != null) {
    json[r'style'] = style.value;
  }
  if (url != null) {
    json[r'url'] = url;
  }
  if (uuid != null) {
    json[r'uuid'] = uuid;
  }
  json[r'versions'] = versions.map((i) => i.toJson()).toList();
  return json;
}