toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var assigneeType = this.assigneeType;
  var avatarId = this.avatarId;
  var categoryId = this.categoryId;
  var description = this.description;
  var fieldConfigurationScheme = this.fieldConfigurationScheme;
  var issueSecurityScheme = this.issueSecurityScheme;
  var issueTypeScheme = this.issueTypeScheme;
  var issueTypeScreenScheme = this.issueTypeScreenScheme;
  var key = this.key;
  var lead = this.lead;
  var leadAccountId = this.leadAccountId;
  var name = this.name;
  var notificationScheme = this.notificationScheme;
  var permissionScheme = this.permissionScheme;
  var projectTemplateKey = this.projectTemplateKey;
  var projectTypeKey = this.projectTypeKey;
  var url = this.url;
  var workflowScheme = this.workflowScheme;

  final json = <String, Object?>{};
  if (assigneeType != null) {
    json[r'assigneeType'] = assigneeType.value;
  }
  if (avatarId != null) {
    json[r'avatarId'] = avatarId;
  }
  if (categoryId != null) {
    json[r'categoryId'] = categoryId;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (fieldConfigurationScheme != null) {
    json[r'fieldConfigurationScheme'] = fieldConfigurationScheme;
  }
  if (issueSecurityScheme != null) {
    json[r'issueSecurityScheme'] = issueSecurityScheme;
  }
  if (issueTypeScheme != null) {
    json[r'issueTypeScheme'] = issueTypeScheme;
  }
  if (issueTypeScreenScheme != null) {
    json[r'issueTypeScreenScheme'] = issueTypeScreenScheme;
  }
  json[r'key'] = key;
  if (lead != null) {
    json[r'lead'] = lead;
  }
  if (leadAccountId != null) {
    json[r'leadAccountId'] = leadAccountId;
  }
  json[r'name'] = name;
  if (notificationScheme != null) {
    json[r'notificationScheme'] = notificationScheme;
  }
  if (permissionScheme != null) {
    json[r'permissionScheme'] = permissionScheme;
  }
  if (projectTemplateKey != null) {
    json[r'projectTemplateKey'] = projectTemplateKey.value;
  }
  if (projectTypeKey != null) {
    json[r'projectTypeKey'] = projectTypeKey.value;
  }
  if (url != null) {
    json[r'url'] = url;
  }
  if (workflowScheme != null) {
    json[r'workflowScheme'] = workflowScheme;
  }
  return json;
}