diff --git a/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj b/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj index ef7aa5b29..496a97acd 100644 --- a/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj +++ b/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj b/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj index 266ec91f4..a44e485a5 100644 --- a/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj +++ b/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj @@ -13,7 +13,7 @@ - + \ No newline at end of file diff --git a/src/NSwag.CodeGeneration.Tests/NSwag.CodeGeneration.Tests.csproj b/src/NSwag.CodeGeneration.Tests/NSwag.CodeGeneration.Tests.csproj index 1f5bf5b89..051879d3a 100644 --- a/src/NSwag.CodeGeneration.Tests/NSwag.CodeGeneration.Tests.csproj +++ b/src/NSwag.CodeGeneration.Tests/NSwag.CodeGeneration.Tests.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Angular.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Angular.verified.txt index 0d0d7765f..4537e485b 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Angular.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Angular.verified.txt @@ -46643,7 +46643,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -46692,7 +46692,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -47125,13 +47125,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -47453,7 +47453,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -47507,7 +47507,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -47776,7 +47776,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -47882,7 +47882,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -48008,7 +48008,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -48253,14 +48253,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -48345,7 +48345,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -48446,7 +48446,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -48549,7 +48549,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -48894,7 +48894,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -49108,12 +49108,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -49175,7 +49175,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -49322,24 +49322,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -49407,7 +49407,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -49581,7 +49581,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -49696,7 +49696,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49744,7 +49744,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49869,7 +49869,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -50313,12 +50313,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -50366,7 +50366,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -50588,7 +50588,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50654,7 +50654,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50863,7 +50863,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -51239,7 +51239,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -51312,7 +51312,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -51385,7 +51385,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -51580,7 +51580,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -51931,7 +51931,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -51994,12 +51994,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -52062,12 +52062,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -52130,12 +52130,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -52415,7 +52415,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -52522,7 +52522,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -52641,7 +52641,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -52689,7 +52689,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -52791,7 +52791,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -53008,7 +53008,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -53408,7 +53408,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -53525,7 +53525,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -53782,25 +53782,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -54324,7 +54324,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -54440,7 +54440,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -54532,12 +54532,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -54887,12 +54887,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -55112,12 +55112,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -55223,7 +55223,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -56996,7 +56996,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -57268,7 +57268,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -57734,7 +57734,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -57855,7 +57855,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -58142,7 +58142,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -58155,7 +58155,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -58248,13 +58248,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -58426,7 +58426,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -58596,7 +58596,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -58923,7 +58923,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -59923,7 +59923,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -60097,12 +60097,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -60184,29 +60184,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -60285,7 +60285,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -60561,7 +60561,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -61247,7 +61247,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -61772,7 +61772,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -61950,7 +61950,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -61963,7 +61963,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -62094,7 +62094,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -62108,12 +62108,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -62255,7 +62255,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -62324,7 +62324,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -62383,7 +62383,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -62443,7 +62443,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -63304,19 +63304,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -63324,7 +63324,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -63405,7 +63405,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -63893,7 +63893,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -64771,7 +64771,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -64942,7 +64942,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -65224,7 +65224,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -65289,7 +65289,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -65399,7 +65399,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -65618,7 +65618,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -66093,7 +66093,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -66317,7 +66317,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -66613,7 +66613,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -66714,7 +66714,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -66827,7 +66827,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -66888,7 +66888,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -67791,13 +67791,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -68079,7 +68079,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -68353,7 +68353,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -68547,7 +68547,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -68937,7 +68937,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -69154,7 +69154,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -69466,7 +69466,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -69873,12 +69873,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -70488,7 +70488,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -70636,7 +70636,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -70778,7 +70778,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -71122,7 +71122,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -71498,53 +71498,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -71552,39 +71552,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -71775,7 +71775,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -71865,7 +71865,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -71918,7 +71918,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -71969,7 +71969,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -72017,7 +72017,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -72071,7 +72071,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -72563,12 +72563,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -72868,19 +72868,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -72978,7 +72978,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -73205,7 +73205,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -73368,7 +73368,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73517,7 +73517,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -73752,7 +73752,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -73877,7 +73877,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -74443,7 +74443,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -74596,14 +74596,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -74785,7 +74785,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75089,7 +75089,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -75150,7 +75150,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -75246,7 +75246,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -75444,7 +75444,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -75864,13 +75864,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -75953,12 +75953,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -76038,7 +76038,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -76148,7 +76148,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76214,7 +76214,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76309,7 +76309,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76579,7 +76579,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -76734,7 +76734,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -76934,7 +76934,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77018,7 +77018,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77102,7 +77102,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77186,7 +77186,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77270,7 +77270,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77354,7 +77354,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77438,7 +77438,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77522,7 +77522,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77606,7 +77606,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77690,7 +77690,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77774,7 +77774,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77858,7 +77858,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77942,7 +77942,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78026,7 +78026,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78110,7 +78110,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78194,7 +78194,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78278,7 +78278,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78362,7 +78362,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78446,7 +78446,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78530,7 +78530,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78614,7 +78614,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78698,7 +78698,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78782,7 +78782,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78866,7 +78866,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78950,7 +78950,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79034,7 +79034,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79118,7 +79118,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79202,7 +79202,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79286,7 +79286,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79370,7 +79370,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79454,7 +79454,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79538,7 +79538,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79622,7 +79622,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79706,7 +79706,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79790,7 +79790,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79874,7 +79874,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79958,7 +79958,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80042,7 +80042,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80126,7 +80126,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80210,7 +80210,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80294,7 +80294,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80378,7 +80378,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80462,7 +80462,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80546,7 +80546,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80630,7 +80630,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80714,7 +80714,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80882,7 +80882,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80966,7 +80966,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81050,7 +81050,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81134,7 +81134,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81218,7 +81218,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81302,7 +81302,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81386,7 +81386,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81470,7 +81470,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81554,7 +81554,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81623,7 +81623,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -81699,7 +81699,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -81783,13 +81783,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -81873,12 +81873,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -81953,7 +81953,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -82039,7 +82039,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82120,7 +82120,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -82189,7 +82189,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82253,7 +82253,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82317,7 +82317,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -82381,7 +82381,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -82437,7 +82437,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -82493,7 +82493,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -82547,7 +82547,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -82680,12 +82680,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -82851,12 +82851,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -82866,7 +82866,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -82876,12 +82876,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -82939,7 +82939,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -83066,7 +83066,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -83158,7 +83158,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -83222,7 +83222,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -83371,7 +83371,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -84046,7 +84046,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -84062,7 +84062,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -84094,7 +84094,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -84261,12 +84261,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -84642,7 +84642,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -85298,7 +85298,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -85364,7 +85364,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -85415,7 +85415,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -85515,7 +85515,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -85625,7 +85625,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -85911,7 +85911,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -86403,7 +86403,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -86545,7 +86545,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -86593,7 +86593,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -87809,7 +87809,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -87886,7 +87886,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -88048,7 +88048,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -88367,7 +88367,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -89057,7 +89057,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -89398,7 +89398,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -89687,7 +89687,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -89758,7 +89758,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -89879,7 +89879,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -89977,7 +89977,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -90036,7 +90036,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -90179,7 +90179,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -90277,7 +90277,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -90582,7 +90582,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -91071,7 +91071,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -91131,7 +91131,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -91636,7 +91636,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -91927,7 +91927,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -92247,7 +92247,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -92385,7 +92385,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -92552,7 +92552,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -92648,7 +92648,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -93203,7 +93203,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -93254,7 +93254,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -94023,7 +94023,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -94031,7 +94031,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -94047,13 +94047,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -94230,7 +94230,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -94239,7 +94239,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -94254,13 +94254,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -94336,7 +94336,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -94465,7 +94465,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -95707,7 +95707,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -96415,7 +96415,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -96931,7 +96931,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -96944,7 +96944,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -97126,7 +97126,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -97543,7 +97543,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -97654,7 +97654,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -97903,7 +97903,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -98090,22 +98090,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -98248,13 +98248,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -98264,12 +98264,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -98335,13 +98335,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -98410,7 +98410,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -98537,12 +98537,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -98608,12 +98608,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -98671,12 +98671,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -99044,7 +99044,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -99179,12 +99179,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -99337,7 +99337,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -99444,7 +99444,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -99512,12 +99512,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -99713,12 +99713,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -99869,7 +99869,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -100510,7 +100510,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -100617,18 +100617,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -100702,7 +100702,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -100774,22 +100774,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -100930,7 +100930,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -101054,13 +101054,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -101641,17 +101641,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -101764,7 +101764,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -101890,7 +101890,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -101990,7 +101990,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -101999,7 +101999,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -102014,13 +102014,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -102205,7 +102205,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -102214,17 +102214,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -102295,12 +102295,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102359,13 +102359,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102566,7 +102566,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -102616,7 +102616,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102684,7 +102684,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -102797,7 +102797,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -103320,17 +103320,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_AngularJS.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_AngularJS.verified.txt index b10a9586d..dc566662f 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_AngularJS.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_AngularJS.verified.txt @@ -41938,7 +41938,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -41987,7 +41987,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -42420,13 +42420,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -42748,7 +42748,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -42802,7 +42802,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -43071,7 +43071,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -43177,7 +43177,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -43303,7 +43303,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -43548,14 +43548,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -43640,7 +43640,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -43741,7 +43741,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -43844,7 +43844,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -44189,7 +44189,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -44403,12 +44403,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -44470,7 +44470,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -44617,24 +44617,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -44702,7 +44702,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -44876,7 +44876,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -44991,7 +44991,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -45039,7 +45039,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -45164,7 +45164,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -45608,12 +45608,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -45661,7 +45661,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -45883,7 +45883,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -45949,7 +45949,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -46158,7 +46158,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -46534,7 +46534,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -46607,7 +46607,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -46680,7 +46680,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -46875,7 +46875,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -47226,7 +47226,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -47289,12 +47289,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -47357,12 +47357,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -47425,12 +47425,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -47710,7 +47710,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -47817,7 +47817,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -47936,7 +47936,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -47984,7 +47984,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -48086,7 +48086,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -48303,7 +48303,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -48703,7 +48703,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -48820,7 +48820,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -49077,25 +49077,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -49619,7 +49619,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -49735,7 +49735,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -49827,12 +49827,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50182,12 +50182,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -50407,12 +50407,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -50518,7 +50518,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -52291,7 +52291,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -52563,7 +52563,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -53029,7 +53029,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -53150,7 +53150,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -53437,7 +53437,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -53450,7 +53450,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -53543,13 +53543,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -53721,7 +53721,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -53891,7 +53891,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -54218,7 +54218,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -55218,7 +55218,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -55392,12 +55392,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -55479,29 +55479,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -55580,7 +55580,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -55856,7 +55856,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -56542,7 +56542,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -57067,7 +57067,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -57245,7 +57245,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -57258,7 +57258,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -57389,7 +57389,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -57403,12 +57403,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -57550,7 +57550,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -57619,7 +57619,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -57678,7 +57678,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -57738,7 +57738,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -58599,19 +58599,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -58619,7 +58619,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -58700,7 +58700,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -59188,7 +59188,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -60066,7 +60066,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -60237,7 +60237,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -60519,7 +60519,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -60584,7 +60584,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -60694,7 +60694,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -60913,7 +60913,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -61388,7 +61388,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -61612,7 +61612,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -61908,7 +61908,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -62009,7 +62009,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -62122,7 +62122,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -62183,7 +62183,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -63086,13 +63086,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -63374,7 +63374,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -63648,7 +63648,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -63842,7 +63842,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -64232,7 +64232,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -64449,7 +64449,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -64761,7 +64761,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -65168,12 +65168,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -65783,7 +65783,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -65931,7 +65931,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -66073,7 +66073,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -66417,7 +66417,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -66793,53 +66793,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -66847,39 +66847,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -67070,7 +67070,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -67160,7 +67160,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -67213,7 +67213,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -67264,7 +67264,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -67312,7 +67312,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -67366,7 +67366,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -67858,12 +67858,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -68163,19 +68163,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -68273,7 +68273,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -68500,7 +68500,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -68663,7 +68663,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68812,7 +68812,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -69047,7 +69047,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -69172,7 +69172,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -69738,7 +69738,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -69891,14 +69891,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -70080,7 +70080,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70384,7 +70384,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -70445,7 +70445,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -70541,7 +70541,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -70739,7 +70739,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -71159,13 +71159,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -71248,12 +71248,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -71333,7 +71333,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -71443,7 +71443,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -71509,7 +71509,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -71604,7 +71604,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -71874,7 +71874,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -72029,7 +72029,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -72229,7 +72229,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72313,7 +72313,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72397,7 +72397,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72481,7 +72481,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72565,7 +72565,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72649,7 +72649,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72733,7 +72733,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72817,7 +72817,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72901,7 +72901,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72985,7 +72985,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73069,7 +73069,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73153,7 +73153,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73237,7 +73237,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73321,7 +73321,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73405,7 +73405,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73489,7 +73489,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73573,7 +73573,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73657,7 +73657,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73741,7 +73741,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73825,7 +73825,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73909,7 +73909,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73993,7 +73993,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74077,7 +74077,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74161,7 +74161,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74245,7 +74245,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74329,7 +74329,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74413,7 +74413,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74497,7 +74497,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74581,7 +74581,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74665,7 +74665,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74749,7 +74749,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74833,7 +74833,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74917,7 +74917,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75001,7 +75001,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75085,7 +75085,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75169,7 +75169,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75253,7 +75253,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75337,7 +75337,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75421,7 +75421,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75505,7 +75505,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75589,7 +75589,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75673,7 +75673,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75757,7 +75757,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75841,7 +75841,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75925,7 +75925,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76009,7 +76009,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76177,7 +76177,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76261,7 +76261,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76345,7 +76345,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76429,7 +76429,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76513,7 +76513,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76597,7 +76597,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76681,7 +76681,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76765,7 +76765,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76849,7 +76849,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -76918,7 +76918,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -76994,7 +76994,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -77078,13 +77078,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -77168,12 +77168,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -77248,7 +77248,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -77334,7 +77334,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77415,7 +77415,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -77484,7 +77484,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77548,7 +77548,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77612,7 +77612,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -77676,7 +77676,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -77732,7 +77732,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -77788,7 +77788,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -77842,7 +77842,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -77975,12 +77975,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -78146,12 +78146,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -78161,7 +78161,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -78171,12 +78171,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -78234,7 +78234,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -78361,7 +78361,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -78453,7 +78453,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -78517,7 +78517,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -78666,7 +78666,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -79341,7 +79341,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -79357,7 +79357,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -79389,7 +79389,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -79556,12 +79556,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -79937,7 +79937,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -80593,7 +80593,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -80659,7 +80659,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -80710,7 +80710,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -80810,7 +80810,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -80920,7 +80920,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -81206,7 +81206,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -81698,7 +81698,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81840,7 +81840,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -81888,7 +81888,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -83104,7 +83104,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -83181,7 +83181,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -83343,7 +83343,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -83662,7 +83662,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -84352,7 +84352,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -84693,7 +84693,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -84982,7 +84982,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -85053,7 +85053,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -85174,7 +85174,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -85272,7 +85272,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -85331,7 +85331,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -85474,7 +85474,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -85572,7 +85572,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -85877,7 +85877,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -86366,7 +86366,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -86426,7 +86426,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -86931,7 +86931,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -87222,7 +87222,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -87542,7 +87542,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -87680,7 +87680,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -87847,7 +87847,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -87943,7 +87943,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -88498,7 +88498,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -88549,7 +88549,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -89318,7 +89318,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -89326,7 +89326,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -89342,13 +89342,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -89525,7 +89525,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -89534,7 +89534,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -89549,13 +89549,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -89631,7 +89631,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -89760,7 +89760,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -91002,7 +91002,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -91710,7 +91710,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -92226,7 +92226,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -92239,7 +92239,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -92421,7 +92421,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -92838,7 +92838,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -92949,7 +92949,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -93198,7 +93198,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -93385,22 +93385,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -93543,13 +93543,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -93559,12 +93559,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -93630,13 +93630,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -93705,7 +93705,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -93832,12 +93832,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -93903,12 +93903,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -93966,12 +93966,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94339,7 +94339,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -94474,12 +94474,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -94632,7 +94632,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -94739,7 +94739,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -94807,12 +94807,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -95008,12 +95008,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -95164,7 +95164,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -95805,7 +95805,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -95912,18 +95912,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -95997,7 +95997,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -96069,22 +96069,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -96225,7 +96225,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -96349,13 +96349,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -96936,17 +96936,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -97059,7 +97059,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -97185,7 +97185,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -97285,7 +97285,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -97294,7 +97294,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -97309,13 +97309,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -97500,7 +97500,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -97509,17 +97509,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -97590,12 +97590,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -97654,13 +97654,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -97861,7 +97861,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -97911,7 +97911,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -97979,7 +97979,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -98092,7 +98092,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -98615,17 +98615,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Aurelia.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Aurelia.verified.txt index 8856619b6..04f6cc785 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Aurelia.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Aurelia.verified.txt @@ -38393,7 +38393,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -38442,7 +38442,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -38875,13 +38875,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -39203,7 +39203,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -39257,7 +39257,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -39526,7 +39526,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -39632,7 +39632,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -39758,7 +39758,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -40003,14 +40003,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -40095,7 +40095,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -40196,7 +40196,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -40299,7 +40299,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -40644,7 +40644,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -40858,12 +40858,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -40925,7 +40925,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -41072,24 +41072,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -41157,7 +41157,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -41331,7 +41331,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -41446,7 +41446,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -41494,7 +41494,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -41619,7 +41619,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -42063,12 +42063,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -42116,7 +42116,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -42338,7 +42338,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -42404,7 +42404,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -42613,7 +42613,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -42989,7 +42989,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -43062,7 +43062,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -43135,7 +43135,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -43330,7 +43330,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -43681,7 +43681,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -43744,12 +43744,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -43812,12 +43812,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -43880,12 +43880,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -44165,7 +44165,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -44272,7 +44272,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -44391,7 +44391,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -44439,7 +44439,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -44541,7 +44541,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -44758,7 +44758,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -45158,7 +45158,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -45275,7 +45275,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -45532,25 +45532,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -46074,7 +46074,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -46190,7 +46190,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -46282,12 +46282,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -46637,12 +46637,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -46862,12 +46862,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -46973,7 +46973,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -48746,7 +48746,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -49018,7 +49018,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49484,7 +49484,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49605,7 +49605,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -49892,7 +49892,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -49905,7 +49905,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -49998,13 +49998,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50176,7 +50176,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -50346,7 +50346,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -50673,7 +50673,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -51673,7 +51673,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -51847,12 +51847,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -51934,29 +51934,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -52035,7 +52035,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -52311,7 +52311,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -52997,7 +52997,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -53522,7 +53522,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -53700,7 +53700,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -53713,7 +53713,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -53844,7 +53844,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -53858,12 +53858,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -54005,7 +54005,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -54074,7 +54074,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -54133,7 +54133,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -54193,7 +54193,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -55054,19 +55054,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -55074,7 +55074,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -55155,7 +55155,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -55643,7 +55643,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -56521,7 +56521,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -56692,7 +56692,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -56974,7 +56974,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -57039,7 +57039,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -57149,7 +57149,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -57368,7 +57368,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -57843,7 +57843,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -58067,7 +58067,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -58363,7 +58363,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -58464,7 +58464,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -58577,7 +58577,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -58638,7 +58638,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -59541,13 +59541,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -59829,7 +59829,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -60103,7 +60103,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -60297,7 +60297,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -60687,7 +60687,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -60904,7 +60904,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -61216,7 +61216,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -61623,12 +61623,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -62238,7 +62238,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -62386,7 +62386,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -62528,7 +62528,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -62872,7 +62872,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -63248,53 +63248,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -63302,39 +63302,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -63525,7 +63525,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -63615,7 +63615,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -63668,7 +63668,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -63719,7 +63719,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -63767,7 +63767,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -63821,7 +63821,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -64313,12 +64313,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -64618,19 +64618,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -64728,7 +64728,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -64955,7 +64955,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -65118,7 +65118,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -65267,7 +65267,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -65502,7 +65502,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -65627,7 +65627,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -66193,7 +66193,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -66346,14 +66346,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -66535,7 +66535,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -66839,7 +66839,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -66900,7 +66900,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -66996,7 +66996,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -67194,7 +67194,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -67614,13 +67614,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -67703,12 +67703,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -67788,7 +67788,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -67898,7 +67898,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -67964,7 +67964,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -68059,7 +68059,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -68329,7 +68329,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -68484,7 +68484,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -68684,7 +68684,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68768,7 +68768,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68852,7 +68852,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68936,7 +68936,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69020,7 +69020,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69104,7 +69104,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69188,7 +69188,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69272,7 +69272,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69356,7 +69356,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69440,7 +69440,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69524,7 +69524,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69608,7 +69608,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69692,7 +69692,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69776,7 +69776,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69860,7 +69860,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69944,7 +69944,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70028,7 +70028,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70112,7 +70112,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70196,7 +70196,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70280,7 +70280,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70364,7 +70364,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70448,7 +70448,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70532,7 +70532,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70616,7 +70616,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70700,7 +70700,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70784,7 +70784,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70868,7 +70868,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70952,7 +70952,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71036,7 +71036,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71120,7 +71120,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71204,7 +71204,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71288,7 +71288,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71372,7 +71372,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71456,7 +71456,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71540,7 +71540,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71624,7 +71624,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71708,7 +71708,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71792,7 +71792,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71876,7 +71876,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71960,7 +71960,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72044,7 +72044,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72128,7 +72128,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72212,7 +72212,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72296,7 +72296,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72380,7 +72380,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72464,7 +72464,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72632,7 +72632,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72716,7 +72716,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72800,7 +72800,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72884,7 +72884,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72968,7 +72968,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73052,7 +73052,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73136,7 +73136,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73220,7 +73220,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73304,7 +73304,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73373,7 +73373,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -73449,7 +73449,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -73533,13 +73533,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -73623,12 +73623,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -73703,7 +73703,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -73789,7 +73789,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73870,7 +73870,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -73939,7 +73939,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74003,7 +74003,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74067,7 +74067,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -74131,7 +74131,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -74187,7 +74187,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -74243,7 +74243,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -74297,7 +74297,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -74430,12 +74430,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -74601,12 +74601,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -74616,7 +74616,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -74626,12 +74626,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -74689,7 +74689,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -74816,7 +74816,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -74908,7 +74908,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -74972,7 +74972,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -75121,7 +75121,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -75796,7 +75796,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -75812,7 +75812,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -75844,7 +75844,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -76011,12 +76011,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -76392,7 +76392,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -77048,7 +77048,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -77114,7 +77114,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -77165,7 +77165,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -77265,7 +77265,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -77375,7 +77375,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -77661,7 +77661,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -78153,7 +78153,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78295,7 +78295,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -78343,7 +78343,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -79559,7 +79559,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -79636,7 +79636,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -79798,7 +79798,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -80117,7 +80117,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -80807,7 +80807,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -81148,7 +81148,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -81437,7 +81437,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -81508,7 +81508,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -81629,7 +81629,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -81727,7 +81727,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -81786,7 +81786,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -81929,7 +81929,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -82027,7 +82027,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -82332,7 +82332,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -82821,7 +82821,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -82881,7 +82881,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -83386,7 +83386,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -83677,7 +83677,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -83997,7 +83997,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84135,7 +84135,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84302,7 +84302,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -84398,7 +84398,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84953,7 +84953,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -85004,7 +85004,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -85773,7 +85773,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -85781,7 +85781,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -85797,13 +85797,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -85980,7 +85980,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -85989,7 +85989,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -86004,13 +86004,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -86086,7 +86086,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -86215,7 +86215,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -87457,7 +87457,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -88165,7 +88165,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -88681,7 +88681,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -88694,7 +88694,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -88876,7 +88876,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -89293,7 +89293,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -89404,7 +89404,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -89653,7 +89653,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -89840,22 +89840,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -89998,13 +89998,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -90014,12 +90014,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -90085,13 +90085,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -90160,7 +90160,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -90287,12 +90287,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -90358,12 +90358,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -90421,12 +90421,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -90794,7 +90794,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -90929,12 +90929,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -91087,7 +91087,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -91194,7 +91194,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -91262,12 +91262,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -91463,12 +91463,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -91619,7 +91619,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -92260,7 +92260,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92367,18 +92367,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92452,7 +92452,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92524,22 +92524,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -92680,7 +92680,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -92804,13 +92804,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -93391,17 +93391,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -93514,7 +93514,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -93640,7 +93640,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -93740,7 +93740,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -93749,7 +93749,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -93764,13 +93764,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -93955,7 +93955,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -93964,17 +93964,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -94045,12 +94045,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94109,13 +94109,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94316,7 +94316,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -94366,7 +94366,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94434,7 +94434,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -94547,7 +94547,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -95070,17 +95070,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Axios.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Axios.verified.txt index b1f310e7c..6b175fd13 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Axios.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Axios.verified.txt @@ -46662,7 +46662,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -46711,7 +46711,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -47144,13 +47144,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -47472,7 +47472,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -47526,7 +47526,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -47795,7 +47795,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -47901,7 +47901,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -48027,7 +48027,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -48272,14 +48272,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -48364,7 +48364,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -48465,7 +48465,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -48568,7 +48568,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -48913,7 +48913,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -49127,12 +49127,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -49194,7 +49194,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -49341,24 +49341,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -49426,7 +49426,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -49600,7 +49600,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -49715,7 +49715,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49763,7 +49763,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49888,7 +49888,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -50332,12 +50332,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -50385,7 +50385,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -50607,7 +50607,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50673,7 +50673,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50882,7 +50882,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -51258,7 +51258,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -51331,7 +51331,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -51404,7 +51404,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -51599,7 +51599,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -51950,7 +51950,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -52013,12 +52013,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -52081,12 +52081,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -52149,12 +52149,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -52434,7 +52434,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -52541,7 +52541,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -52660,7 +52660,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -52708,7 +52708,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -52810,7 +52810,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -53027,7 +53027,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -53427,7 +53427,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -53544,7 +53544,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -53801,25 +53801,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -54343,7 +54343,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -54459,7 +54459,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -54551,12 +54551,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -54906,12 +54906,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -55131,12 +55131,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -55242,7 +55242,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -57015,7 +57015,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -57287,7 +57287,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -57753,7 +57753,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -57874,7 +57874,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -58161,7 +58161,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -58174,7 +58174,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -58267,13 +58267,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -58445,7 +58445,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -58615,7 +58615,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -58942,7 +58942,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -59942,7 +59942,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -60116,12 +60116,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -60203,29 +60203,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -60304,7 +60304,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -60580,7 +60580,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -61266,7 +61266,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -61791,7 +61791,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -61969,7 +61969,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -61982,7 +61982,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -62113,7 +62113,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -62127,12 +62127,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -62274,7 +62274,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -62343,7 +62343,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -62402,7 +62402,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -62462,7 +62462,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -63323,19 +63323,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -63343,7 +63343,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -63424,7 +63424,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -63912,7 +63912,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -64790,7 +64790,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -64961,7 +64961,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -65243,7 +65243,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -65308,7 +65308,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -65418,7 +65418,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -65637,7 +65637,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -66112,7 +66112,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -66336,7 +66336,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -66632,7 +66632,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -66733,7 +66733,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -66846,7 +66846,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -66907,7 +66907,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -67810,13 +67810,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -68098,7 +68098,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -68372,7 +68372,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -68566,7 +68566,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -68956,7 +68956,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -69173,7 +69173,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -69485,7 +69485,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -69892,12 +69892,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -70507,7 +70507,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -70655,7 +70655,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -70797,7 +70797,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -71141,7 +71141,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -71517,53 +71517,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -71571,39 +71571,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -71794,7 +71794,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -71884,7 +71884,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -71937,7 +71937,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -71988,7 +71988,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -72036,7 +72036,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -72090,7 +72090,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -72582,12 +72582,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -72887,19 +72887,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -72997,7 +72997,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -73224,7 +73224,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -73387,7 +73387,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73536,7 +73536,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -73771,7 +73771,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -73896,7 +73896,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -74462,7 +74462,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -74615,14 +74615,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -74804,7 +74804,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75108,7 +75108,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -75169,7 +75169,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -75265,7 +75265,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -75463,7 +75463,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -75883,13 +75883,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -75972,12 +75972,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -76057,7 +76057,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -76167,7 +76167,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76233,7 +76233,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76328,7 +76328,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76598,7 +76598,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -76753,7 +76753,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -76953,7 +76953,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77037,7 +77037,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77121,7 +77121,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77205,7 +77205,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77289,7 +77289,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77373,7 +77373,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77457,7 +77457,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77541,7 +77541,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77625,7 +77625,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77709,7 +77709,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77793,7 +77793,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77877,7 +77877,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77961,7 +77961,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78045,7 +78045,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78129,7 +78129,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78213,7 +78213,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78297,7 +78297,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78381,7 +78381,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78465,7 +78465,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78549,7 +78549,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78633,7 +78633,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78717,7 +78717,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78801,7 +78801,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78885,7 +78885,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78969,7 +78969,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79053,7 +79053,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79137,7 +79137,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79221,7 +79221,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79305,7 +79305,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79389,7 +79389,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79473,7 +79473,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79557,7 +79557,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79641,7 +79641,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79725,7 +79725,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79809,7 +79809,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79893,7 +79893,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79977,7 +79977,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80061,7 +80061,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80145,7 +80145,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80229,7 +80229,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80313,7 +80313,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80397,7 +80397,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80481,7 +80481,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80565,7 +80565,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80649,7 +80649,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80733,7 +80733,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80901,7 +80901,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80985,7 +80985,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81069,7 +81069,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81153,7 +81153,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81237,7 +81237,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81321,7 +81321,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81405,7 +81405,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81489,7 +81489,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81573,7 +81573,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81642,7 +81642,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -81718,7 +81718,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -81802,13 +81802,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -81892,12 +81892,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -81972,7 +81972,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -82058,7 +82058,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82139,7 +82139,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -82208,7 +82208,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82272,7 +82272,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82336,7 +82336,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -82400,7 +82400,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -82456,7 +82456,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -82512,7 +82512,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -82566,7 +82566,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -82699,12 +82699,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -82870,12 +82870,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -82885,7 +82885,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -82895,12 +82895,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -82958,7 +82958,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -83085,7 +83085,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -83177,7 +83177,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -83241,7 +83241,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -83390,7 +83390,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -84065,7 +84065,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -84081,7 +84081,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -84113,7 +84113,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -84280,12 +84280,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -84661,7 +84661,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -85317,7 +85317,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -85383,7 +85383,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -85434,7 +85434,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -85534,7 +85534,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -85644,7 +85644,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -85930,7 +85930,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -86422,7 +86422,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -86564,7 +86564,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -86612,7 +86612,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -87828,7 +87828,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -87905,7 +87905,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -88067,7 +88067,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -88386,7 +88386,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -89076,7 +89076,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -89417,7 +89417,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -89706,7 +89706,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -89777,7 +89777,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -89898,7 +89898,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -89996,7 +89996,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -90055,7 +90055,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -90198,7 +90198,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -90296,7 +90296,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -90601,7 +90601,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -91090,7 +91090,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -91150,7 +91150,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -91655,7 +91655,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -91946,7 +91946,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -92266,7 +92266,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -92404,7 +92404,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -92571,7 +92571,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -92667,7 +92667,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -93222,7 +93222,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -93273,7 +93273,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -94042,7 +94042,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -94050,7 +94050,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -94066,13 +94066,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -94249,7 +94249,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -94258,7 +94258,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -94273,13 +94273,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -94355,7 +94355,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -94484,7 +94484,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -95726,7 +95726,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -96434,7 +96434,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -96950,7 +96950,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -96963,7 +96963,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -97145,7 +97145,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -97562,7 +97562,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -97673,7 +97673,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -97922,7 +97922,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -98109,22 +98109,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -98267,13 +98267,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -98283,12 +98283,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -98354,13 +98354,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -98429,7 +98429,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -98556,12 +98556,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -98627,12 +98627,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -98690,12 +98690,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -99063,7 +99063,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -99198,12 +99198,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -99356,7 +99356,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -99463,7 +99463,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -99531,12 +99531,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -99732,12 +99732,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -99888,7 +99888,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -100529,7 +100529,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -100636,18 +100636,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -100721,7 +100721,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -100793,22 +100793,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -100949,7 +100949,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -101073,13 +101073,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -101660,17 +101660,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -101783,7 +101783,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -101909,7 +101909,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -102009,7 +102009,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -102018,7 +102018,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -102033,13 +102033,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -102224,7 +102224,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -102233,17 +102233,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -102314,12 +102314,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102378,13 +102378,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102585,7 +102585,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -102635,7 +102635,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102703,7 +102703,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -102816,7 +102816,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -103339,17 +103339,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Fetch.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Fetch.verified.txt index 76a491fef..1653fe595 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Fetch.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_Fetch.verified.txt @@ -38378,7 +38378,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -38427,7 +38427,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -38860,13 +38860,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -39188,7 +39188,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -39242,7 +39242,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -39511,7 +39511,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -39617,7 +39617,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -39743,7 +39743,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -39988,14 +39988,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -40080,7 +40080,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -40181,7 +40181,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -40284,7 +40284,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -40629,7 +40629,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -40843,12 +40843,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -40910,7 +40910,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -41057,24 +41057,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -41142,7 +41142,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -41316,7 +41316,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -41431,7 +41431,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -41479,7 +41479,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -41604,7 +41604,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -42048,12 +42048,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -42101,7 +42101,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -42323,7 +42323,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -42389,7 +42389,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -42598,7 +42598,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -42974,7 +42974,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -43047,7 +43047,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -43120,7 +43120,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -43315,7 +43315,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -43666,7 +43666,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -43729,12 +43729,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -43797,12 +43797,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -43865,12 +43865,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -44150,7 +44150,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -44257,7 +44257,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -44376,7 +44376,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -44424,7 +44424,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -44526,7 +44526,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -44743,7 +44743,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -45143,7 +45143,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -45260,7 +45260,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -45517,25 +45517,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -46059,7 +46059,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -46175,7 +46175,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -46267,12 +46267,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -46622,12 +46622,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -46847,12 +46847,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -46958,7 +46958,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -48731,7 +48731,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -49003,7 +49003,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49469,7 +49469,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -49590,7 +49590,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -49877,7 +49877,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -49890,7 +49890,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -49983,13 +49983,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -50161,7 +50161,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -50331,7 +50331,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -50658,7 +50658,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -51658,7 +51658,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -51832,12 +51832,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -51919,29 +51919,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -52020,7 +52020,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -52296,7 +52296,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -52982,7 +52982,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -53507,7 +53507,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -53685,7 +53685,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -53698,7 +53698,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -53829,7 +53829,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -53843,12 +53843,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -53990,7 +53990,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -54059,7 +54059,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -54118,7 +54118,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -54178,7 +54178,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -55039,19 +55039,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -55059,7 +55059,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -55140,7 +55140,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -55628,7 +55628,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -56506,7 +56506,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -56677,7 +56677,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -56959,7 +56959,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -57024,7 +57024,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -57134,7 +57134,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -57353,7 +57353,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -57828,7 +57828,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -58052,7 +58052,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -58348,7 +58348,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -58449,7 +58449,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -58562,7 +58562,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -58623,7 +58623,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -59526,13 +59526,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -59814,7 +59814,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -60088,7 +60088,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -60282,7 +60282,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -60672,7 +60672,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -60889,7 +60889,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -61201,7 +61201,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -61608,12 +61608,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -62223,7 +62223,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -62371,7 +62371,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -62513,7 +62513,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -62857,7 +62857,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -63233,53 +63233,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -63287,39 +63287,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -63510,7 +63510,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -63600,7 +63600,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -63653,7 +63653,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -63704,7 +63704,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -63752,7 +63752,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -63806,7 +63806,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -64298,12 +64298,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -64603,19 +64603,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -64713,7 +64713,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -64940,7 +64940,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -65103,7 +65103,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -65252,7 +65252,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -65487,7 +65487,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -65612,7 +65612,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -66178,7 +66178,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -66331,14 +66331,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -66520,7 +66520,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -66824,7 +66824,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -66885,7 +66885,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -66981,7 +66981,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -67179,7 +67179,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -67599,13 +67599,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -67688,12 +67688,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -67773,7 +67773,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -67883,7 +67883,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -67949,7 +67949,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -68044,7 +68044,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -68314,7 +68314,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -68469,7 +68469,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -68669,7 +68669,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68753,7 +68753,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68837,7 +68837,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -68921,7 +68921,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69005,7 +69005,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69089,7 +69089,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69173,7 +69173,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69257,7 +69257,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69341,7 +69341,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69425,7 +69425,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69509,7 +69509,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69593,7 +69593,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69677,7 +69677,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69761,7 +69761,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69845,7 +69845,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -69929,7 +69929,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70013,7 +70013,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70097,7 +70097,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70181,7 +70181,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70265,7 +70265,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70349,7 +70349,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70433,7 +70433,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70517,7 +70517,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70601,7 +70601,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70685,7 +70685,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70769,7 +70769,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70853,7 +70853,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -70937,7 +70937,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71021,7 +71021,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71105,7 +71105,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71189,7 +71189,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71273,7 +71273,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71357,7 +71357,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71441,7 +71441,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71525,7 +71525,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71609,7 +71609,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71693,7 +71693,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71777,7 +71777,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71861,7 +71861,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -71945,7 +71945,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72029,7 +72029,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72113,7 +72113,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72197,7 +72197,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72281,7 +72281,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72365,7 +72365,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72449,7 +72449,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72617,7 +72617,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72701,7 +72701,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72785,7 +72785,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72869,7 +72869,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -72953,7 +72953,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73037,7 +73037,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73121,7 +73121,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73205,7 +73205,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73289,7 +73289,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73358,7 +73358,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -73434,7 +73434,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -73518,13 +73518,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -73608,12 +73608,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -73688,7 +73688,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -73774,7 +73774,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73855,7 +73855,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -73924,7 +73924,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -73988,7 +73988,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -74052,7 +74052,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -74116,7 +74116,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -74172,7 +74172,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -74228,7 +74228,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -74282,7 +74282,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -74415,12 +74415,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -74586,12 +74586,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -74601,7 +74601,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -74611,12 +74611,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -74674,7 +74674,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -74801,7 +74801,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -74893,7 +74893,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -74957,7 +74957,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -75106,7 +75106,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -75781,7 +75781,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -75797,7 +75797,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -75829,7 +75829,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -75996,12 +75996,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -76377,7 +76377,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -77033,7 +77033,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -77099,7 +77099,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -77150,7 +77150,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -77250,7 +77250,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -77360,7 +77360,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -77646,7 +77646,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -78138,7 +78138,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78280,7 +78280,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -78328,7 +78328,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -79544,7 +79544,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -79621,7 +79621,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -79783,7 +79783,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -80102,7 +80102,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -80792,7 +80792,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -81133,7 +81133,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -81422,7 +81422,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -81493,7 +81493,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -81614,7 +81614,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -81712,7 +81712,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -81771,7 +81771,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -81914,7 +81914,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -82012,7 +82012,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -82317,7 +82317,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -82806,7 +82806,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -82866,7 +82866,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -83371,7 +83371,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -83662,7 +83662,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -83982,7 +83982,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84120,7 +84120,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84287,7 +84287,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -84383,7 +84383,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84938,7 +84938,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -84989,7 +84989,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -85758,7 +85758,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -85766,7 +85766,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -85782,13 +85782,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -85965,7 +85965,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -85974,7 +85974,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -85989,13 +85989,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -86071,7 +86071,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -86200,7 +86200,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -87442,7 +87442,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -88150,7 +88150,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -88666,7 +88666,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -88679,7 +88679,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -88861,7 +88861,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -89278,7 +89278,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -89389,7 +89389,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -89638,7 +89638,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -89825,22 +89825,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -89983,13 +89983,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -89999,12 +89999,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -90070,13 +90070,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -90145,7 +90145,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -90272,12 +90272,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -90343,12 +90343,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -90406,12 +90406,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -90779,7 +90779,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -90914,12 +90914,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -91072,7 +91072,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -91179,7 +91179,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -91247,12 +91247,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -91448,12 +91448,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -91604,7 +91604,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -92245,7 +92245,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92352,18 +92352,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92437,7 +92437,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92509,22 +92509,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -92665,7 +92665,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -92789,13 +92789,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -93376,17 +93376,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -93499,7 +93499,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -93625,7 +93625,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -93725,7 +93725,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -93734,7 +93734,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -93749,13 +93749,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -93940,7 +93940,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -93949,17 +93949,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -94030,12 +94030,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94094,13 +94094,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94301,7 +94301,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -94351,7 +94351,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -94419,7 +94419,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -94532,7 +94532,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -95055,17 +95055,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryCallbacks.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryCallbacks.verified.txt index 9c2c15eaa..d1f30565f 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryCallbacks.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryCallbacks.verified.txt @@ -48973,7 +48973,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -49022,7 +49022,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -49455,13 +49455,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -49783,7 +49783,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -49837,7 +49837,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -50106,7 +50106,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -50212,7 +50212,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -50338,7 +50338,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -50583,14 +50583,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -50675,7 +50675,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -50776,7 +50776,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -50879,7 +50879,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -51224,7 +51224,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -51438,12 +51438,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -51505,7 +51505,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -51652,24 +51652,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -51737,7 +51737,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -51911,7 +51911,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -52026,7 +52026,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -52074,7 +52074,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -52199,7 +52199,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -52643,12 +52643,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -52696,7 +52696,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -52918,7 +52918,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -52984,7 +52984,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -53193,7 +53193,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -53569,7 +53569,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -53642,7 +53642,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -53715,7 +53715,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -53910,7 +53910,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -54261,7 +54261,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -54324,12 +54324,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -54392,12 +54392,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -54460,12 +54460,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -54745,7 +54745,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -54852,7 +54852,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -54971,7 +54971,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -55019,7 +55019,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -55121,7 +55121,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -55338,7 +55338,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -55738,7 +55738,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -55855,7 +55855,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -56112,25 +56112,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -56654,7 +56654,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -56770,7 +56770,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -56862,12 +56862,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -57217,12 +57217,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -57442,12 +57442,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -57553,7 +57553,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -59326,7 +59326,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -59598,7 +59598,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -60064,7 +60064,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -60185,7 +60185,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -60472,7 +60472,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -60485,7 +60485,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -60578,13 +60578,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -60756,7 +60756,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -60926,7 +60926,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -61253,7 +61253,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -62253,7 +62253,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -62427,12 +62427,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -62514,29 +62514,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -62615,7 +62615,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -62891,7 +62891,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -63577,7 +63577,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -64102,7 +64102,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -64280,7 +64280,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -64293,7 +64293,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -64424,7 +64424,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -64438,12 +64438,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -64585,7 +64585,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -64654,7 +64654,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -64713,7 +64713,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -64773,7 +64773,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -65634,19 +65634,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -65654,7 +65654,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -65735,7 +65735,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -66223,7 +66223,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -67101,7 +67101,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -67272,7 +67272,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -67554,7 +67554,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -67619,7 +67619,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -67729,7 +67729,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -67948,7 +67948,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -68423,7 +68423,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -68647,7 +68647,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -68943,7 +68943,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -69044,7 +69044,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -69157,7 +69157,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -69218,7 +69218,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -70121,13 +70121,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -70409,7 +70409,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -70683,7 +70683,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -70877,7 +70877,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -71267,7 +71267,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -71484,7 +71484,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -71796,7 +71796,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -72203,12 +72203,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -72818,7 +72818,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -72966,7 +72966,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -73108,7 +73108,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -73452,7 +73452,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -73828,53 +73828,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -73882,39 +73882,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -74105,7 +74105,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -74195,7 +74195,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -74248,7 +74248,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -74299,7 +74299,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -74347,7 +74347,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -74401,7 +74401,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -74893,12 +74893,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -75198,19 +75198,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -75308,7 +75308,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -75535,7 +75535,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -75698,7 +75698,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -75847,7 +75847,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -76082,7 +76082,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -76207,7 +76207,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -76773,7 +76773,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -76926,14 +76926,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -77115,7 +77115,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77419,7 +77419,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -77480,7 +77480,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -77576,7 +77576,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -77774,7 +77774,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -78194,13 +78194,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -78283,12 +78283,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -78368,7 +78368,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -78478,7 +78478,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -78544,7 +78544,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -78639,7 +78639,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -78909,7 +78909,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -79064,7 +79064,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -79264,7 +79264,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79348,7 +79348,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79432,7 +79432,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79516,7 +79516,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79600,7 +79600,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79684,7 +79684,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79768,7 +79768,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79852,7 +79852,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -79936,7 +79936,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80020,7 +80020,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80104,7 +80104,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80188,7 +80188,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80272,7 +80272,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80356,7 +80356,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80440,7 +80440,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80524,7 +80524,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80608,7 +80608,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80692,7 +80692,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80776,7 +80776,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80860,7 +80860,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80944,7 +80944,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81028,7 +81028,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81112,7 +81112,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81196,7 +81196,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81280,7 +81280,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81364,7 +81364,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81448,7 +81448,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81532,7 +81532,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81616,7 +81616,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81700,7 +81700,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81784,7 +81784,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81868,7 +81868,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81952,7 +81952,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82036,7 +82036,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82120,7 +82120,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82204,7 +82204,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82288,7 +82288,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82372,7 +82372,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82456,7 +82456,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82540,7 +82540,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82624,7 +82624,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82708,7 +82708,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82792,7 +82792,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82876,7 +82876,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82960,7 +82960,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83044,7 +83044,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83212,7 +83212,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83296,7 +83296,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83380,7 +83380,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83464,7 +83464,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83548,7 +83548,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83632,7 +83632,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83716,7 +83716,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83800,7 +83800,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83884,7 +83884,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83953,7 +83953,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -84029,7 +84029,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -84113,13 +84113,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -84203,12 +84203,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -84283,7 +84283,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -84369,7 +84369,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84450,7 +84450,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -84519,7 +84519,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84583,7 +84583,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84647,7 +84647,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -84711,7 +84711,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -84767,7 +84767,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -84823,7 +84823,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -84877,7 +84877,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -85010,12 +85010,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -85181,12 +85181,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -85196,7 +85196,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -85206,12 +85206,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -85269,7 +85269,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -85396,7 +85396,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -85488,7 +85488,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -85552,7 +85552,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -85701,7 +85701,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -86376,7 +86376,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -86392,7 +86392,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -86424,7 +86424,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -86591,12 +86591,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -86972,7 +86972,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -87628,7 +87628,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -87694,7 +87694,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -87745,7 +87745,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -87845,7 +87845,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -87955,7 +87955,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -88241,7 +88241,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -88733,7 +88733,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -88875,7 +88875,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -88923,7 +88923,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -90139,7 +90139,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -90216,7 +90216,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -90378,7 +90378,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -90697,7 +90697,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -91387,7 +91387,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -91728,7 +91728,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -92017,7 +92017,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -92088,7 +92088,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -92209,7 +92209,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -92307,7 +92307,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -92366,7 +92366,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -92509,7 +92509,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -92607,7 +92607,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -92912,7 +92912,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -93401,7 +93401,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -93461,7 +93461,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -93966,7 +93966,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -94257,7 +94257,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -94577,7 +94577,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -94715,7 +94715,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -94882,7 +94882,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -94978,7 +94978,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -95533,7 +95533,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -95584,7 +95584,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -96353,7 +96353,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -96361,7 +96361,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -96377,13 +96377,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -96560,7 +96560,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -96569,7 +96569,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -96584,13 +96584,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -96666,7 +96666,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -96795,7 +96795,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -98037,7 +98037,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -98745,7 +98745,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -99261,7 +99261,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -99274,7 +99274,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -99456,7 +99456,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -99873,7 +99873,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -99984,7 +99984,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -100233,7 +100233,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -100420,22 +100420,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -100578,13 +100578,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -100594,12 +100594,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -100665,13 +100665,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -100740,7 +100740,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -100867,12 +100867,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -100938,12 +100938,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -101001,12 +101001,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -101374,7 +101374,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -101509,12 +101509,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -101667,7 +101667,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -101774,7 +101774,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -101842,12 +101842,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102043,12 +102043,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -102199,7 +102199,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -102840,7 +102840,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -102947,18 +102947,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -103032,7 +103032,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -103104,22 +103104,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -103260,7 +103260,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -103384,13 +103384,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -103971,17 +103971,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -104094,7 +104094,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -104220,7 +104220,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -104320,7 +104320,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -104329,7 +104329,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -104344,13 +104344,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -104535,7 +104535,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -104544,17 +104544,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -104625,12 +104625,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -104689,13 +104689,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -104896,7 +104896,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -104946,7 +104946,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -105014,7 +105014,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -105127,7 +105127,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -105650,17 +105650,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryPromises.verified.txt b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryPromises.verified.txt index 38f19aa80..fea8bb479 100644 --- a/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryPromises.verified.txt +++ b/src/NSwag.CodeGeneration.TypeScript.Tests/Snapshots/JIRA_OpenAPI_JQueryPromises.verified.txt @@ -50151,7 +50151,7 @@ export class AddNotificationsDetails implements IAddNotificationsDetails { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -50200,7 +50200,7 @@ export class AddSecuritySchemeLevelsRequestBean implements IAddSecuritySchemeLev if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -50633,13 +50633,13 @@ export class ApplicationRole implements IApplicationRole { if (Array.isArray(this.defaultGroupsDetails)) { data["defaultGroupsDetails"] = []; for (let item of this.defaultGroupsDetails) - data["defaultGroupsDetails"].push(item.toJSON()); + data["defaultGroupsDetails"].push(item ? item.toJSON() : undefined); } data["defined"] = this.defined; if (Array.isArray(this.groupDetails)) { data["groupDetails"] = []; for (let item of this.groupDetails) - data["groupDetails"].push(item.toJSON()); + data["groupDetails"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; @@ -50961,7 +50961,7 @@ export class AssociateFieldConfigurationsWithIssueTypesRequest implements IAssoc if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -51015,7 +51015,7 @@ export class AssociateSecuritySchemeWithProjectDetails implements IAssociateSecu if (Array.isArray(this.oldToNewSecurityLevelMappings)) { data["oldToNewSecurityLevelMappings"] = []; for (let item of this.oldToNewSecurityLevelMappings) - data["oldToNewSecurityLevelMappings"].push(item.toJSON()); + data["oldToNewSecurityLevelMappings"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; data["schemeId"] = this.schemeId; @@ -51284,7 +51284,7 @@ export class AttachmentArchive implements IAttachmentArchive { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["moreAvailable"] = this.moreAvailable; data["totalEntryCount"] = this.totalEntryCount; @@ -51390,7 +51390,7 @@ export class AttachmentArchiveImpl implements IAttachmentArchiveImpl { if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["totalEntryCount"] = this.totalEntryCount; return data; @@ -51516,7 +51516,7 @@ export class AttachmentArchiveMetadataReadable implements IAttachmentArchiveMeta if (Array.isArray(this.entries)) { data["entries"] = []; for (let item of this.entries) - data["entries"].push(item.toJSON()); + data["entries"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["mediaType"] = this.mediaType; @@ -51761,14 +51761,14 @@ export class AuditRecordBean implements IAuditRecordBean { if (Array.isArray(this.associatedItems)) { data["associatedItems"] = []; for (let item of this.associatedItems) - data["associatedItems"].push(item.toJSON()); + data["associatedItems"].push(item ? item.toJSON() : undefined); } data["authorKey"] = this.authorKey; data["category"] = this.category; if (Array.isArray(this.changedValues)) { data["changedValues"] = []; for (let item of this.changedValues) - data["changedValues"].push(item.toJSON()); + data["changedValues"].push(item ? item.toJSON() : undefined); } data["created"] = this.created ? this.created.toISOString() : undefined; data["description"] = this.description; @@ -51853,7 +51853,7 @@ export class AuditRecords implements IAuditRecords { if (Array.isArray(this.records)) { data["records"] = []; for (let item of this.records) - data["records"].push(item.toJSON()); + data["records"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; return data; @@ -51954,7 +51954,7 @@ export class AutoCompleteSuggestions implements IAutoCompleteSuggestions { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -52057,7 +52057,7 @@ export class AvailableDashboardGadgetsResponse implements IAvailableDashboardGad if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -52402,7 +52402,7 @@ export class AvailableWorkflowTriggers implements IAvailableWorkflowTriggers { if (Array.isArray(this.availableTypes)) { data["availableTypes"] = []; for (let item of this.availableTypes) - data["availableTypes"].push(item.toJSON()); + data["availableTypes"].push(item ? item.toJSON() : undefined); } data["ruleKey"] = this.ruleKey; return data; @@ -52616,12 +52616,12 @@ export class Avatars implements IAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -52683,7 +52683,7 @@ export class BoardColumnPayload implements IBoardColumnPayload { if (Array.isArray(this.statusIds)) { data["statusIds"] = []; for (let item of this.statusIds) - data["statusIds"].push(item.toJSON()); + data["statusIds"].push(item ? item.toJSON() : undefined); } return data; } @@ -52830,24 +52830,24 @@ export class BoardPayload implements IBoardPayload { if (Array.isArray(this.cardLayouts)) { data["cardLayouts"] = []; for (let item of this.cardLayouts) - data["cardLayouts"].push(item.toJSON()); + data["cardLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.columns)) { data["columns"] = []; for (let item of this.columns) - data["columns"].push(item.toJSON()); + data["columns"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; if (Array.isArray(this.quickFilters)) { data["quickFilters"] = []; for (let item of this.quickFilters) - data["quickFilters"].push(item.toJSON()); + data["quickFilters"].push(item ? item.toJSON() : undefined); } data["supportsSprint"] = this.supportsSprint; data["swimlanes"] = this.swimlanes ? this.swimlanes.toJSON() : undefined; @@ -52915,7 +52915,7 @@ export class BoardsPayload implements IBoardsPayload { if (Array.isArray(this.boards)) { data["boards"] = []; for (let item of this.boards) - data["boards"].push(item.toJSON()); + data["boards"].push(item ? item.toJSON() : undefined); } return data; } @@ -53089,7 +53089,7 @@ export class BulkChangelogResponseBean implements IBulkChangelogResponseBean { if (Array.isArray(this.issueChangeLogs)) { data["issueChangeLogs"] = []; for (let item of this.issueChangeLogs) - data["issueChangeLogs"].push(item.toJSON()); + data["issueChangeLogs"].push(item ? item.toJSON() : undefined); } data["nextPageToken"] = this.nextPageToken; return data; @@ -53204,7 +53204,7 @@ export class BulkCustomFieldOptionCreateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -53252,7 +53252,7 @@ export class BulkCustomFieldOptionUpdateRequest implements IBulkCustomFieldOptio if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -53377,7 +53377,7 @@ export class BulkEditGetFields implements IBulkEditGetFields { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["startingAfter"] = this.startingAfter; return data; @@ -53821,12 +53821,12 @@ export class BulkIssueResults implements IBulkIssueResults { if (Array.isArray(this.issueErrors)) { data["issueErrors"] = []; for (let item of this.issueErrors) - data["issueErrors"].push(item.toJSON()); + data["issueErrors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -53874,7 +53874,7 @@ export class BulkOperationErrorResponse implements IBulkOperationErrorResponse { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -54096,7 +54096,7 @@ export class BulkPermissionGrants implements IBulkPermissionGrants { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -54162,7 +54162,7 @@ export class BulkPermissionsRequestBean implements IBulkPermissionsRequestBean { if (Array.isArray(this.projectPermissions)) { data["projectPermissions"] = []; for (let item of this.projectPermissions) - data["projectPermissions"].push(item.toJSON()); + data["projectPermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -54371,7 +54371,7 @@ export class BulkTransitionGetAvailableTransitions implements IBulkTransitionGet if (Array.isArray(this.availableTransitions)) { data["availableTransitions"] = []; for (let item of this.availableTransitions) - data["availableTransitions"].push(item.toJSON()); + data["availableTransitions"].push(item ? item.toJSON() : undefined); } data["endingBefore"] = this.endingBefore; data["startingAfter"] = this.startingAfter; @@ -54747,7 +54747,7 @@ export class ChangedWorklog implements IChangedWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["updatedTime"] = this.updatedTime; data["worklogId"] = this.worklogId; @@ -54820,7 +54820,7 @@ export class ChangedWorklogs implements IChangedWorklogs { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -54893,7 +54893,7 @@ export class Changelog implements IChangelog { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } return data; } @@ -55088,7 +55088,7 @@ export class Comment implements IComment { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["renderedBody"] = this.renderedBody; data["self"] = this.self; @@ -55439,7 +55439,7 @@ export class CompoundClause implements ICompoundClause { if (Array.isArray(this.clauses)) { data["clauses"] = []; for (let item of this.clauses) - data["clauses"].push(item.toJSON()); + data["clauses"].push(item ? item.toJSON() : undefined); } data["operator"] = this.operator; return data; @@ -55502,12 +55502,12 @@ export class ConditionGroupConfiguration implements IConditionGroupConfiguration if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -55570,12 +55570,12 @@ export class ConditionGroupPayload implements IConditionGroupPayload { if (Array.isArray(this.conditionGroup)) { data["conditionGroup"] = []; for (let item of this.conditionGroup) - data["conditionGroup"].push(item.toJSON()); + data["conditionGroup"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -55638,12 +55638,12 @@ export class ConditionGroupUpdate implements IConditionGroupUpdate { if (Array.isArray(this.conditionGroups)) { data["conditionGroups"] = []; for (let item of this.conditionGroups) - data["conditionGroups"].push(item.toJSON()); + data["conditionGroups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["operation"] = this.operation; return data; @@ -55923,7 +55923,7 @@ export class ConnectCustomFieldValues implements IConnectCustomFieldValues { if (Array.isArray(this.updateValueList)) { data["updateValueList"] = []; for (let item of this.updateValueList) - data["updateValueList"].push(item.toJSON()); + data["updateValueList"].push(item ? item.toJSON() : undefined); } return data; } @@ -56030,7 +56030,7 @@ export class ConnectModules implements IConnectModules { if (Array.isArray(this.modules)) { data["modules"] = []; for (let item of this.modules) - data["modules"].push(item.toJSON()); + data["modules"].push(item ? item.toJSON() : undefined); } return data; } @@ -56149,7 +56149,7 @@ export class ContainerForProjectFeatures implements IContainerForProjectFeatures if (Array.isArray(this.features)) { data["features"] = []; for (let item of this.features) - data["features"].push(item.toJSON()); + data["features"].push(item ? item.toJSON() : undefined); } return data; } @@ -56197,7 +56197,7 @@ export class ContainerForRegisteredWebhooks implements IContainerForRegisteredWe if (Array.isArray(this.webhookRegistrationResult)) { data["webhookRegistrationResult"] = []; for (let item of this.webhookRegistrationResult) - data["webhookRegistrationResult"].push(item.toJSON()); + data["webhookRegistrationResult"].push(item ? item.toJSON() : undefined); } return data; } @@ -56299,7 +56299,7 @@ export class ContainerOfWorkflowSchemeAssociations implements IContainerOfWorkfl if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -56516,7 +56516,7 @@ export class ConvertedJQLQueries implements IConvertedJQLQueries { if (Array.isArray(this.queriesWithUnknownUsers)) { data["queriesWithUnknownUsers"] = []; for (let item of this.queriesWithUnknownUsers) - data["queriesWithUnknownUsers"].push(item.toJSON()); + data["queriesWithUnknownUsers"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.queryStrings)) { data["queryStrings"] = []; @@ -56916,7 +56916,7 @@ export class CreateIssueSecuritySchemeDetails implements ICreateIssueSecuritySch if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -57033,7 +57033,7 @@ export class CreateNotificationSchemeDetails implements ICreateNotificationSchem if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } return data; } @@ -57290,25 +57290,25 @@ export class CreatePlanRequest implements ICreatePlanRequest { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["leadAccountId"] = this.leadAccountId; data["name"] = this.name; if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; return data; @@ -57832,7 +57832,7 @@ export class CreateUiModificationDetails implements ICreateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -57948,7 +57948,7 @@ export class CreateWorkflowCondition implements ICreateWorkflowCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (this.configuration) { data["configuration"] = {}; @@ -58040,12 +58040,12 @@ All the transition statuses must be included in `statuses`. */ if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -58395,12 +58395,12 @@ export class CreateWorkflowTransitionRulesDetails implements ICreateWorkflowTran if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -58620,12 +58620,12 @@ export class CreatedIssues implements ICreatedIssues { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -58731,7 +58731,7 @@ export class CustomFieldConfigurations implements ICustomFieldConfigurations { if (Array.isArray(this.configurations)) { data["configurations"] = []; for (let item of this.configurations) - data["configurations"].push(item.toJSON()); + data["configurations"].push(item ? item.toJSON() : undefined); } return data; } @@ -60504,7 +60504,7 @@ export class CustomFieldContextDefaultValueUpdate implements ICustomFieldContext if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -60776,7 +60776,7 @@ export class CustomFieldCreatedContextOptionsList implements ICustomFieldCreated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -61242,7 +61242,7 @@ export class CustomFieldUpdatedContextOptionsList implements ICustomFieldUpdated if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -61363,7 +61363,7 @@ export class CustomFieldValueUpdateDetails implements ICustomFieldValueUpdateDet if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -61650,7 +61650,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isFavourite"] = this.isFavourite; @@ -61663,7 +61663,7 @@ export class Dashboard implements IDashboard { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["systemDashboard"] = this.systemDashboard; data["view"] = this.view; @@ -61756,13 +61756,13 @@ export class DashboardDetails implements IDashboardDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -61934,7 +61934,7 @@ export class DashboardGadgetResponse implements IDashboardGadgetResponse { if (Array.isArray(this.gadgets)) { data["gadgets"] = []; for (let item of this.gadgets) - data["gadgets"].push(item.toJSON()); + data["gadgets"].push(item ? item.toJSON() : undefined); } return data; } @@ -62104,7 +62104,7 @@ export class DataClassificationLevelsBean implements IDataClassificationLevelsBe if (Array.isArray(this.classifications)) { data["classifications"] = []; for (let item of this.classifications) - data["classifications"].push(item.toJSON()); + data["classifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -62431,7 +62431,7 @@ export class DeleteAndReplaceVersionBean implements IDeleteAndReplaceVersionBean if (Array.isArray(this.customFieldReplacementList)) { data["customFieldReplacementList"] = []; for (let item of this.customFieldReplacementList) - data["customFieldReplacementList"].push(item.toJSON()); + data["customFieldReplacementList"].push(item ? item.toJSON() : undefined); } data["moveAffectedIssuesTo"] = this.moveAffectedIssuesTo; data["moveFixIssuesTo"] = this.moveFixIssuesTo; @@ -63431,7 +63431,7 @@ export class FailedWebhooks implements IFailedWebhooks { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -63605,12 +63605,12 @@ export class FieldAssociationsRequest implements IFieldAssociationsRequest { if (Array.isArray(this.associationContexts)) { data["associationContexts"] = []; for (let item of this.associationContexts) - data["associationContexts"].push(item.toJSON()); + data["associationContexts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -63692,29 +63692,29 @@ export class FieldCapabilityPayload implements IFieldCapabilityPayload { if (Array.isArray(this.customFieldDefinitions)) { data["customFieldDefinitions"] = []; for (let item of this.customFieldDefinitions) - data["customFieldDefinitions"].push(item.toJSON()); + data["customFieldDefinitions"].push(item ? item.toJSON() : undefined); } data["fieldLayoutScheme"] = this.fieldLayoutScheme ? this.fieldLayoutScheme.toJSON() : undefined; if (Array.isArray(this.fieldLayouts)) { data["fieldLayouts"] = []; for (let item of this.fieldLayouts) - data["fieldLayouts"].push(item.toJSON()); + data["fieldLayouts"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueLayouts)) { data["issueLayouts"] = []; for (let item of this.issueLayouts) - data["issueLayouts"].push(item.toJSON()); + data["issueLayouts"].push(item ? item.toJSON() : undefined); } data["issueTypeScreenScheme"] = this.issueTypeScreenScheme ? this.issueTypeScreenScheme.toJSON() : undefined; if (Array.isArray(this.screenScheme)) { data["screenScheme"] = []; for (let item of this.screenScheme) - data["screenScheme"].push(item.toJSON()); + data["screenScheme"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.screens)) { data["screens"] = []; for (let item of this.screens) - data["screens"].push(item.toJSON()); + data["screens"].push(item ? item.toJSON() : undefined); } return data; } @@ -63793,7 +63793,7 @@ export class FieldChangedClause implements IFieldChangedClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -64069,7 +64069,7 @@ export class FieldConfigurationItemsDetails implements IFieldConfigurationItemsD if (Array.isArray(this.fieldConfigurationItems)) { data["fieldConfigurationItems"] = []; for (let item of this.fieldConfigurationItems) - data["fieldConfigurationItems"].push(item.toJSON()); + data["fieldConfigurationItems"].push(item ? item.toJSON() : undefined); } return data; } @@ -64755,7 +64755,7 @@ export class FieldLayoutPayload implements IFieldLayoutPayload { if (Array.isArray(this.configuration)) { data["configuration"] = []; for (let item of this.configuration) - data["configuration"].push(item.toJSON()); + data["configuration"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -65280,7 +65280,7 @@ export class FieldWasClause implements IFieldWasClause { if (Array.isArray(this.predicates)) { data["predicates"] = []; for (let item of this.predicates) - data["predicates"].push(item.toJSON()); + data["predicates"].push(item ? item.toJSON() : undefined); } return data; } @@ -65458,7 +65458,7 @@ export class Filter implements IFilter { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["favourite"] = this.favourite; data["favouritedCount"] = this.favouritedCount; @@ -65471,7 +65471,7 @@ export class Filter implements IFilter { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } data["sharedUsers"] = this.sharedUsers ? this.sharedUsers.toJSON() : undefined; data["subscriptions"] = this.subscriptions ? this.subscriptions.toJSON() : undefined; @@ -65602,7 +65602,7 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } data["expand"] = this.expand; data["favourite"] = this.favourite; @@ -65616,12 +65616,12 @@ export class FilterDetails implements IFilterDetails { if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.subscriptions)) { data["subscriptions"] = []; for (let item of this.subscriptions) - data["subscriptions"].push(item.toJSON()); + data["subscriptions"].push(item ? item.toJSON() : undefined); } data["viewUrl"] = this.viewUrl; return data; @@ -65763,7 +65763,7 @@ export class FilterSubscriptionsList implements IFilterSubscriptionsList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -65832,7 +65832,7 @@ export class FoundGroup implements IFoundGroup { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -65891,7 +65891,7 @@ export class FoundGroups implements IFoundGroups { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header; data["total"] = this.total; @@ -65951,7 +65951,7 @@ export class FoundUsers implements IFoundUsers { if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -66812,19 +66812,19 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.crossProjectReleases)) { data["crossProjectReleases"] = []; for (let item of this.crossProjectReleases) - data["crossProjectReleases"].push(item.toJSON()); + data["crossProjectReleases"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.customFields)) { data["customFields"] = []; for (let item of this.customFields) - data["customFields"].push(item.toJSON()); + data["customFields"].push(item ? item.toJSON() : undefined); } data["exclusionRules"] = this.exclusionRules ? this.exclusionRules.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["lastSaved"] = this.lastSaved; data["leadAccountId"] = this.leadAccountId; @@ -66832,7 +66832,7 @@ export class GetPlanResponse implements IGetPlanResponse { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scheduling"] = this.scheduling ? this.scheduling.toJSON() : undefined; data["status"] = this.status; @@ -66913,7 +66913,7 @@ export class GetPlanResponseForPage implements IGetPlanResponseForPage { if (Array.isArray(this.issueSources)) { data["issueSources"] = []; for (let item of this.issueSources) - data["issueSources"].push(item.toJSON()); + data["issueSources"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["scenarioId"] = this.scenarioId; @@ -67401,7 +67401,7 @@ export class Hierarchy implements IHierarchy { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -68279,7 +68279,7 @@ export class IssueBean implements IIssueBean { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } if (this.versionedRepresentations) { data["versionedRepresentations"] = {}; @@ -68450,7 +68450,7 @@ export class IssueBulkEditField implements IIssueBulkEditField { if (Array.isArray(this.fieldOptions)) { data["fieldOptions"] = []; for (let item of this.fieldOptions) - data["fieldOptions"].push(item.toJSON()); + data["fieldOptions"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["isRequired"] = this.isRequired; @@ -68732,7 +68732,7 @@ export class IssueBulkTransitionForWorkflow implements IIssueBulkTransitionForWo if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -68797,7 +68797,7 @@ If `true`, dispatches a bulk notification email to users about the updates. */ if (Array.isArray(this.bulkTransitionInputs)) { data["bulkTransitionInputs"] = []; for (let item of this.bulkTransitionInputs) - data["bulkTransitionInputs"].push(item.toJSON()); + data["bulkTransitionInputs"].push(item ? item.toJSON() : undefined); } data["sendBulkNotification"] = this.sendBulkNotification; return data; @@ -68907,7 +68907,7 @@ export class IssueChangeLog implements IIssueChangeLog { if (Array.isArray(this.changeHistories)) { data["changeHistories"] = []; for (let item of this.changeHistories) - data["changeHistories"].push(item.toJSON()); + data["changeHistories"].push(item ? item.toJSON() : undefined); } data["issueId"] = this.issueId; return data; @@ -69126,7 +69126,7 @@ export class IssueCreateMetadata implements IIssueCreateMetadata { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -69601,7 +69601,7 @@ export class IssueFieldOptionScopeBean implements IIssueFieldOptionScopeBean { if (Array.isArray(this.projects2)) { data["projects2"] = []; for (let item of this.projects2) - data["projects2"].push(item.toJSON()); + data["projects2"].push(item ? item.toJSON() : undefined); } return data; } @@ -69825,7 +69825,7 @@ export class IssueLayoutPayload implements IIssueLayoutPayload { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; return data; @@ -70121,7 +70121,7 @@ export class IssueLinkTypes implements IIssueLinkTypes { if (Array.isArray(this.issueLinkTypes)) { data["issueLinkTypes"] = []; for (let item of this.issueLinkTypes) - data["issueLinkTypes"].push(item.toJSON()); + data["issueLinkTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -70222,7 +70222,7 @@ export class IssueMatches implements IIssueMatches { if (Array.isArray(this.matches)) { data["matches"] = []; for (let item of this.matches) - data["matches"].push(item.toJSON()); + data["matches"].push(item ? item.toJSON() : undefined); } return data; } @@ -70335,7 +70335,7 @@ export class IssuePickerSuggestions implements IIssuePickerSuggestions { if (Array.isArray(this.sections)) { data["sections"] = []; for (let item of this.sections) - data["sections"].push(item.toJSON()); + data["sections"].push(item ? item.toJSON() : undefined); } return data; } @@ -70396,7 +70396,7 @@ export class IssuePickerSuggestionsIssueType implements IIssuePickerSuggestionsI if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["label"] = this.label; data["msg"] = this.msg; @@ -71299,13 +71299,13 @@ export class IssueTypeProjectCreatePayload implements IIssueTypeProjectCreatePay if (Array.isArray(this.issueTypeHierarchy)) { data["issueTypeHierarchy"] = []; for (let item of this.issueTypeHierarchy) - data["issueTypeHierarchy"].push(item.toJSON()); + data["issueTypeHierarchy"].push(item ? item.toJSON() : undefined); } data["issueTypeScheme"] = this.issueTypeScheme ? this.issueTypeScheme.toJSON() : undefined; if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -71587,7 +71587,7 @@ export class IssueTypeSchemePayload implements IIssueTypeSchemePayload { if (Array.isArray(this.issueTypeIds)) { data["issueTypeIds"] = []; for (let item of this.issueTypeIds) - data["issueTypeIds"].push(item.toJSON()); + data["issueTypeIds"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -71861,7 +71861,7 @@ export class IssueTypeScreenSchemeDetails implements IIssueTypeScreenSchemeDetai if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -72055,7 +72055,7 @@ export class IssueTypeScreenSchemeMappingDetails implements IIssueTypeScreenSche if (Array.isArray(this.issueTypeMappings)) { data["issueTypeMappings"] = []; for (let item of this.issueTypeMappings) - data["issueTypeMappings"].push(item.toJSON()); + data["issueTypeMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -72445,7 +72445,7 @@ export class IssueTypeWithStatus implements IIssueTypeWithStatus { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["subtask"] = this.subtask; return data; @@ -72662,7 +72662,7 @@ export class IssueUpdateDetails implements IIssueUpdateDetails { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["transition"] = this.transition ? this.transition.toJSON() : undefined; if (this.update) { @@ -72974,7 +72974,7 @@ export class IssuesUpdateBean implements IIssuesUpdateBean { if (Array.isArray(this.issueUpdates)) { data["issueUpdates"] = []; for (let item of this.issueUpdates) - data["issueUpdates"].push(item.toJSON()); + data["issueUpdates"].push(item ? item.toJSON() : undefined); } return data; } @@ -73381,12 +73381,12 @@ export class JQLReferenceData implements IJQLReferenceData { if (Array.isArray(this.visibleFieldNames)) { data["visibleFieldNames"] = []; for (let item of this.visibleFieldNames) - data["visibleFieldNames"].push(item.toJSON()); + data["visibleFieldNames"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.visibleFunctionNames)) { data["visibleFunctionNames"] = []; for (let item of this.visibleFunctionNames) - data["visibleFunctionNames"].push(item.toJSON()); + data["visibleFunctionNames"].push(item ? item.toJSON() : undefined); } return data; } @@ -73996,7 +73996,7 @@ export class JiraExpressionAnalysis implements IJiraExpressionAnalysis { if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } data["expression"] = this.expression; data["type"] = this.type; @@ -74144,7 +74144,7 @@ export class JiraExpressionEvalContextBean implements IJiraExpressionEvalContext if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -74286,7 +74286,7 @@ export class JiraExpressionEvaluateContextBean implements IJiraExpressionEvaluat if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } data["customerRequest"] = this.customerRequest; data["issue"] = this.issue ? this.issue.toJSON() : undefined; @@ -74630,7 +74630,7 @@ export class JiraExpressionsAnalysis implements IJiraExpressionsAnalysis { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } return data; } @@ -75006,53 +75006,53 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.cascadingSelectFields)) { data["cascadingSelectFields"] = []; for (let item of this.cascadingSelectFields) - data["cascadingSelectFields"].push(item.toJSON()); + data["cascadingSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.clearableNumberFields)) { data["clearableNumberFields"] = []; for (let item of this.clearableNumberFields) - data["clearableNumberFields"].push(item.toJSON()); + data["clearableNumberFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.colorFields)) { data["colorFields"] = []; for (let item of this.colorFields) - data["colorFields"].push(item.toJSON()); + data["colorFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.datePickerFields)) { data["datePickerFields"] = []; for (let item of this.datePickerFields) - data["datePickerFields"].push(item.toJSON()); + data["datePickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.dateTimePickerFields)) { data["dateTimePickerFields"] = []; for (let item of this.dateTimePickerFields) - data["dateTimePickerFields"].push(item.toJSON()); + data["dateTimePickerFields"].push(item ? item.toJSON() : undefined); } data["issueType"] = this.issueType ? this.issueType.toJSON() : undefined; if (Array.isArray(this.labelsFields)) { data["labelsFields"] = []; for (let item of this.labelsFields) - data["labelsFields"].push(item.toJSON()); + data["labelsFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleGroupPickerFields)) { data["multipleGroupPickerFields"] = []; for (let item of this.multipleGroupPickerFields) - data["multipleGroupPickerFields"].push(item.toJSON()); + data["multipleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectClearableUserPickerFields)) { data["multipleSelectClearableUserPickerFields"] = []; for (let item of this.multipleSelectClearableUserPickerFields) - data["multipleSelectClearableUserPickerFields"].push(item.toJSON()); + data["multipleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleSelectFields)) { data["multipleSelectFields"] = []; for (let item of this.multipleSelectFields) - data["multipleSelectFields"].push(item.toJSON()); + data["multipleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.multipleVersionPickerFields)) { data["multipleVersionPickerFields"] = []; for (let item of this.multipleVersionPickerFields) - data["multipleVersionPickerFields"].push(item.toJSON()); + data["multipleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["multiselectComponents"] = this.multiselectComponents ? this.multiselectComponents.toJSON() : undefined; data["originalEstimateField"] = this.originalEstimateField ? this.originalEstimateField.toJSON() : undefined; @@ -75060,39 +75060,39 @@ For ADF format details, refer to: [Atlassian Document Format](https://developer. if (Array.isArray(this.richTextFields)) { data["richTextFields"] = []; for (let item of this.richTextFields) - data["richTextFields"].push(item.toJSON()); + data["richTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleGroupPickerFields)) { data["singleGroupPickerFields"] = []; for (let item of this.singleGroupPickerFields) - data["singleGroupPickerFields"].push(item.toJSON()); + data["singleGroupPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleLineTextFields)) { data["singleLineTextFields"] = []; for (let item of this.singleLineTextFields) - data["singleLineTextFields"].push(item.toJSON()); + data["singleLineTextFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectClearableUserPickerFields)) { data["singleSelectClearableUserPickerFields"] = []; for (let item of this.singleSelectClearableUserPickerFields) - data["singleSelectClearableUserPickerFields"].push(item.toJSON()); + data["singleSelectClearableUserPickerFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleSelectFields)) { data["singleSelectFields"] = []; for (let item of this.singleSelectFields) - data["singleSelectFields"].push(item.toJSON()); + data["singleSelectFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.singleVersionPickerFields)) { data["singleVersionPickerFields"] = []; for (let item of this.singleVersionPickerFields) - data["singleVersionPickerFields"].push(item.toJSON()); + data["singleVersionPickerFields"].push(item ? item.toJSON() : undefined); } data["status"] = this.status ? this.status.toJSON() : undefined; data["timeTrackingField"] = this.timeTrackingField ? this.timeTrackingField.toJSON() : undefined; if (Array.isArray(this.urlFields)) { data["urlFields"] = []; for (let item of this.urlFields) - data["urlFields"].push(item.toJSON()); + data["urlFields"].push(item ? item.toJSON() : undefined); } return data; } @@ -75283,7 +75283,7 @@ export class JiraLabelsField implements IJiraLabelsField { if (Array.isArray(this.labels)) { data["labels"] = []; for (let item of this.labels) - data["labels"].push(item.toJSON()); + data["labels"].push(item ? item.toJSON() : undefined); } return data; } @@ -75373,7 +75373,7 @@ export class JiraMultiSelectComponentField implements IJiraMultiSelectComponentF if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["fieldId"] = this.fieldId; return data; @@ -75426,7 +75426,7 @@ export class JiraMultipleGroupPickerField implements IJiraMultipleGroupPickerFie if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } return data; } @@ -75477,7 +75477,7 @@ export class JiraMultipleSelectField implements IJiraMultipleSelectField { if (Array.isArray(this.options)) { data["options"] = []; for (let item of this.options) - data["options"].push(item.toJSON()); + data["options"].push(item ? item.toJSON() : undefined); } return data; } @@ -75525,7 +75525,7 @@ export class JiraMultipleSelectUserPickerField implements IJiraMultipleSelectUse if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -75579,7 +75579,7 @@ export class JiraMultipleVersionPickerField implements IJiraMultipleVersionPicke if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -76071,12 +76071,12 @@ The workflows that use this status. Only available if the `workflowUsages` expan if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowUsages)) { data["workflowUsages"] = []; for (let item of this.workflowUsages) - data["workflowUsages"].push(item.toJSON()); + data["workflowUsages"].push(item ? item.toJSON() : undefined); } return data; } @@ -76376,19 +76376,19 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated; if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -76486,7 +76486,7 @@ The `statuses.usages` expand is an optional parameter that can be used when read if (Array.isArray(this.usages)) { data["usages"] = []; for (let item of this.usages) - data["usages"].push(item.toJSON()); + data["usages"].push(item ? item.toJSON() : undefined); } return data; } @@ -76713,7 +76713,7 @@ export class JqlFunctionPrecomputationGetByIdResponse implements IJqlFunctionPre if (Array.isArray(this.precomputations)) { data["precomputations"] = []; for (let item of this.precomputations) - data["precomputations"].push(item.toJSON()); + data["precomputations"].push(item ? item.toJSON() : undefined); } return data; } @@ -76876,7 +76876,7 @@ export class JqlFunctionPrecomputationUpdateRequestBean implements IJqlFunctionP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -77025,7 +77025,7 @@ export class JqlQueriesToSanitize implements IJqlQueriesToSanitize { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -77260,7 +77260,7 @@ export class JqlQueryField implements IJqlQueryField { if (Array.isArray(this.property)) { data["property"] = []; for (let item of this.property) - data["property"].push(item.toJSON()); + data["property"].push(item ? item.toJSON() : undefined); } return data; } @@ -77385,7 +77385,7 @@ export class JqlQueryOrderByClause implements IJqlQueryOrderByClause { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } return data; } @@ -77951,7 +77951,7 @@ export class License implements ILicense { if (Array.isArray(this.applications)) { data["applications"] = []; for (let item of this.applications) - data["applications"].push(item.toJSON()); + data["applications"].push(item ? item.toJSON() : undefined); } return data; } @@ -78104,14 +78104,14 @@ export class LinkGroup implements ILinkGroup { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["header"] = this.header ? this.header.toJSON() : undefined; data["id"] = this.id; if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["styleClass"] = this.styleClass; data["weight"] = this.weight; @@ -78293,7 +78293,7 @@ export class ListOperand implements IListOperand { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -78597,7 +78597,7 @@ export class MappingsByIssueTypeOverride implements IMappingsByIssueTypeOverride if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -78658,7 +78658,7 @@ export class MappingsByWorkflow implements IMappingsByWorkflow { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -78754,7 +78754,7 @@ export class MultiIssueEntityProperties implements IMultiIssueEntityProperties { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } return data; } @@ -78952,7 +78952,7 @@ export class MultipleCustomFieldValuesUpdateDetails implements IMultipleCustomFi if (Array.isArray(this.updates)) { data["updates"] = []; for (let item of this.updates) - data["updates"].push(item.toJSON()); + data["updates"].push(item ? item.toJSON() : undefined); } return data; } @@ -79372,13 +79372,13 @@ export class NotificationRecipients implements INotificationRecipients { if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } data["reporter"] = this.reporter; if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } data["voters"] = this.voters; data["watchers"] = this.watchers; @@ -79461,12 +79461,12 @@ export class NotificationRecipientsRestrictions implements INotificationRecipien if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -79546,7 +79546,7 @@ export class NotificationScheme implements INotificationScheme { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projects)) { data["projects"] = []; @@ -79656,7 +79656,7 @@ export class NotificationSchemeEvent implements INotificationSchemeEvent { if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -79722,7 +79722,7 @@ export class NotificationSchemeEventDetails implements INotificationSchemeEventD if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -79817,7 +79817,7 @@ export class NotificationSchemeEventPayload implements INotificationSchemeEventP if (Array.isArray(this.notifications)) { data["notifications"] = []; for (let item of this.notifications) - data["notifications"].push(item.toJSON()); + data["notifications"].push(item ? item.toJSON() : undefined); } return data; } @@ -80087,7 +80087,7 @@ export class NotificationSchemePayload implements INotificationSchemePayload { if (Array.isArray(this.notificationSchemeEvents)) { data["notificationSchemeEvents"] = []; for (let item of this.notificationSchemeEvents) - data["notificationSchemeEvents"].push(item.toJSON()); + data["notificationSchemeEvents"].push(item ? item.toJSON() : undefined); } data["onConflict"] = this.onConflict; data["pcri"] = this.pcri ? this.pcri.toJSON() : undefined; @@ -80242,7 +80242,7 @@ export class Operations implements IOperations { if (Array.isArray(this.linkGroups)) { data["linkGroups"] = []; for (let item of this.linkGroups) - data["linkGroups"].push(item.toJSON()); + data["linkGroups"].push(item ? item.toJSON() : undefined); } return data; } @@ -80442,7 +80442,7 @@ export class PageBean2ComponentJsonBean implements IPageBean2ComponentJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80526,7 +80526,7 @@ export class PageBean2JqlFunctionPrecomputationBean implements IPageBean2JqlFunc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80610,7 +80610,7 @@ export class PageBeanBulkContextualConfiguration implements IPageBeanBulkContext if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80694,7 +80694,7 @@ export class PageBeanChangelog implements IPageBeanChangelog { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80778,7 +80778,7 @@ export class PageBeanComment implements IPageBeanComment { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80862,7 +80862,7 @@ export class PageBeanComponentWithIssueCount implements IPageBeanComponentWithIs if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -80946,7 +80946,7 @@ export class PageBeanContext implements IPageBeanContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81030,7 +81030,7 @@ export class PageBeanContextForProjectAndIssueType implements IPageBeanContextFo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81114,7 +81114,7 @@ export class PageBeanContextualConfiguration implements IPageBeanContextualConfi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81198,7 +81198,7 @@ export class PageBeanCustomFieldContext implements IPageBeanCustomFieldContext { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81282,7 +81282,7 @@ export class PageBeanCustomFieldContextDefaultValue implements IPageBeanCustomFi if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81366,7 +81366,7 @@ export class PageBeanCustomFieldContextOption implements IPageBeanCustomFieldCon if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81450,7 +81450,7 @@ export class PageBeanCustomFieldContextProjectMapping implements IPageBeanCustom if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81534,7 +81534,7 @@ export class PageBeanDashboard implements IPageBeanDashboard { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81618,7 +81618,7 @@ export class PageBeanField implements IPageBeanField { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81702,7 +81702,7 @@ export class PageBeanFieldConfigurationDetails implements IPageBeanFieldConfigur if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81786,7 +81786,7 @@ export class PageBeanFieldConfigurationIssueTypeItem implements IPageBeanFieldCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81870,7 +81870,7 @@ export class PageBeanFieldConfigurationItem implements IPageBeanFieldConfigurati if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -81954,7 +81954,7 @@ export class PageBeanFieldConfigurationScheme implements IPageBeanFieldConfigura if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82038,7 +82038,7 @@ export class PageBeanFieldConfigurationSchemeProjects implements IPageBeanFieldC if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82122,7 +82122,7 @@ export class PageBeanFilterDetails implements IPageBeanFilterDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82206,7 +82206,7 @@ export class PageBeanGroupDetails implements IPageBeanGroupDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82290,7 +82290,7 @@ export class PageBeanIssueFieldOption implements IPageBeanIssueFieldOption { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82374,7 +82374,7 @@ export class PageBeanIssueSecurityLevelMember implements IPageBeanIssueSecurityL if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82458,7 +82458,7 @@ export class PageBeanIssueSecuritySchemeToProjectMapping implements IPageBeanIss if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82542,7 +82542,7 @@ export class PageBeanIssueTypeScheme implements IPageBeanIssueTypeScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82626,7 +82626,7 @@ export class PageBeanIssueTypeSchemeMapping implements IPageBeanIssueTypeSchemeM if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82710,7 +82710,7 @@ export class PageBeanIssueTypeSchemeProjects implements IPageBeanIssueTypeScheme if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82794,7 +82794,7 @@ export class PageBeanIssueTypeScreenScheme implements IPageBeanIssueTypeScreenSc if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82878,7 +82878,7 @@ export class PageBeanIssueTypeScreenSchemeItem implements IPageBeanIssueTypeScre if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -82962,7 +82962,7 @@ export class PageBeanIssueTypeScreenSchemesProjects implements IPageBeanIssueTyp if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83046,7 +83046,7 @@ export class PageBeanIssueTypeToContextMapping implements IPageBeanIssueTypeToCo if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83130,7 +83130,7 @@ export class PageBeanNotificationScheme implements IPageBeanNotificationScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83214,7 +83214,7 @@ export class PageBeanNotificationSchemeAndProjectMappingJsonBean implements IPag if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83298,7 +83298,7 @@ export class PageBeanPriority implements IPageBeanPriority { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83382,7 +83382,7 @@ export class PageBeanPrioritySchemeWithPaginatedPrioritiesAndProjects implements if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83466,7 +83466,7 @@ export class PageBeanPriorityWithSequence implements IPageBeanPriorityWithSequen if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83550,7 +83550,7 @@ export class PageBeanProject implements IPageBeanProject { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83634,7 +83634,7 @@ export class PageBeanProjectDetails implements IPageBeanProjectDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83718,7 +83718,7 @@ export class PageBeanResolutionJsonBean implements IPageBeanResolutionJsonBean { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83802,7 +83802,7 @@ export class PageBeanScreen implements IPageBeanScreen { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83886,7 +83886,7 @@ export class PageBeanScreenScheme implements IPageBeanScreenScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -83970,7 +83970,7 @@ export class PageBeanScreenWithTab implements IPageBeanScreenWithTab { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84054,7 +84054,7 @@ export class PageBeanSecurityLevel implements IPageBeanSecurityLevel { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84138,7 +84138,7 @@ export class PageBeanSecurityLevelMember implements IPageBeanSecurityLevelMember if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84222,7 +84222,7 @@ export class PageBeanSecuritySchemeWithProjects implements IPageBeanSecuritySche if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84390,7 +84390,7 @@ export class PageBeanUiModificationDetails implements IPageBeanUiModificationDet if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84474,7 +84474,7 @@ export class PageBeanUser implements IPageBeanUser { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84558,7 +84558,7 @@ export class PageBeanUserDetails implements IPageBeanUserDetails { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84642,7 +84642,7 @@ export class PageBeanUserKey implements IPageBeanUserKey { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84726,7 +84726,7 @@ export class PageBeanVersion implements IPageBeanVersion { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84810,7 +84810,7 @@ export class PageBeanWebhook implements IPageBeanWebhook { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84894,7 +84894,7 @@ export class PageBeanWorkflow implements IPageBeanWorkflow { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -84978,7 +84978,7 @@ export class PageBeanWorkflowScheme implements IPageBeanWorkflowScheme { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -85062,7 +85062,7 @@ export class PageBeanWorkflowTransitionRules implements IPageBeanWorkflowTransit if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -85131,7 +85131,7 @@ export class PageOfChangelogs implements IPageOfChangelogs { if (Array.isArray(this.histories)) { data["histories"] = []; for (let item of this.histories) - data["histories"].push(item.toJSON()); + data["histories"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -85207,7 +85207,7 @@ export class PageOfComments implements IPageOfComments { if (Array.isArray(this.comments)) { data["comments"] = []; for (let item of this.comments) - data["comments"].push(item.toJSON()); + data["comments"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -85291,13 +85291,13 @@ export class PageOfCreateMetaIssueTypeWithField implements IPageOfCreateMetaIssu if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -85381,12 +85381,12 @@ export class PageOfCreateMetaIssueTypes implements IPageOfCreateMetaIssueTypes { if (Array.isArray(this.createMetaIssueType)) { data["createMetaIssueType"] = []; for (let item of this.createMetaIssueType) - data["createMetaIssueType"].push(item.toJSON()); + data["createMetaIssueType"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["startAt"] = this.startAt; @@ -85461,7 +85461,7 @@ export class PageOfDashboards implements IPageOfDashboards { if (Array.isArray(this.dashboards)) { data["dashboards"] = []; for (let item of this.dashboards) - data["dashboards"].push(item.toJSON()); + data["dashboards"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; data["next"] = this.next; @@ -85547,7 +85547,7 @@ export class PageOfStatuses implements IPageOfStatuses { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -85628,7 +85628,7 @@ export class PageOfWorklogs implements IPageOfWorklogs { if (Array.isArray(this.worklogs)) { data["worklogs"] = []; for (let item of this.worklogs) - data["worklogs"].push(item.toJSON()); + data["worklogs"].push(item ? item.toJSON() : undefined); } return data; } @@ -85697,7 +85697,7 @@ export class PageWithCursorGetPlanResponseForPage implements IPageWithCursorGetP if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -85761,7 +85761,7 @@ export class PageWithCursorGetTeamResponseForPage implements IPageWithCursorGetT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -85825,7 +85825,7 @@ export class PagedListUserDetailsApplicationUser implements IPagedListUserDetail if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -85889,7 +85889,7 @@ export class PaginatedResponseComment implements IPaginatedResponseComment { if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -85945,7 +85945,7 @@ export class PaginatedResponseFieldCreateMetadata implements IPaginatedResponseF if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -86001,7 +86001,7 @@ export class PaginatedResponseIssueTypeIssueCreateMetadata implements IPaginated if (Array.isArray(this.results)) { data["results"] = []; for (let item of this.results) - data["results"].push(item.toJSON()); + data["results"].push(item ? item.toJSON() : undefined); } data["startAt"] = this.startAt; data["total"] = this.total; @@ -86055,7 +86055,7 @@ export class ParsedJqlQueries implements IParsedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -86188,12 +86188,12 @@ export class PermissionDetails implements IPermissionDetails { if (Array.isArray(this.editPermissions)) { data["editPermissions"] = []; for (let item of this.editPermissions) - data["editPermissions"].push(item.toJSON()); + data["editPermissions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.sharePermissions)) { data["sharePermissions"] = []; for (let item of this.sharePermissions) - data["sharePermissions"].push(item.toJSON()); + data["sharePermissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -86359,12 +86359,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.groupCustomFields)) { data["groupCustomFields"] = []; for (let item of this.groupCustomFields) - data["groupCustomFields"].push(item.toJSON()); + data["groupCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.groups)) { data["groups"] = []; for (let item of this.groups) - data["groups"].push(item.toJSON()); + data["groups"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.permissionKeys)) { data["permissionKeys"] = []; @@ -86374,7 +86374,7 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.projectRoles)) { data["projectRoles"] = []; for (let item of this.projectRoles) - data["projectRoles"].push(item.toJSON()); + data["projectRoles"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.specialGrants)) { data["specialGrants"] = []; @@ -86384,12 +86384,12 @@ export class PermissionGrantDTO implements IPermissionGrantDTO { if (Array.isArray(this.userCustomFields)) { data["userCustomFields"] = []; for (let item of this.userCustomFields) - data["userCustomFields"].push(item.toJSON()); + data["userCustomFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.users)) { data["users"] = []; for (let item of this.users) - data["users"].push(item.toJSON()); + data["users"].push(item ? item.toJSON() : undefined); } return data; } @@ -86447,7 +86447,7 @@ export class PermissionGrants implements IPermissionGrants { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } return data; } @@ -86574,7 +86574,7 @@ export class PermissionPayloadDTO implements IPermissionPayloadDTO { if (Array.isArray(this.grants)) { data["grants"] = []; for (let item of this.grants) - data["grants"].push(item.toJSON()); + data["grants"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["onConflict"] = this.onConflict; @@ -86666,7 +86666,7 @@ export class PermissionScheme implements IPermissionScheme { if (Array.isArray(this.permissions)) { data["permissions"] = []; for (let item of this.permissions) - data["permissions"].push(item.toJSON()); + data["permissions"].push(item ? item.toJSON() : undefined); } data["scope"] = this.scope ? this.scope.toJSON() : undefined; data["self"] = this.self; @@ -86730,7 +86730,7 @@ export class PermissionSchemes implements IPermissionSchemes { if (Array.isArray(this.permissionSchemes)) { data["permissionSchemes"] = []; for (let item of this.permissionSchemes) - data["permissionSchemes"].push(item.toJSON()); + data["permissionSchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -86879,7 +86879,7 @@ export class PermittedProjects implements IPermittedProjects { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } return data; } @@ -87554,7 +87554,7 @@ export class Project implements IProject { if (Array.isArray(this.components)) { data["components"] = []; for (let item of this.components) - data["components"].push(item.toJSON()); + data["components"].push(item ? item.toJSON() : undefined); } data["deleted"] = this.deleted; data["deletedBy"] = this.deletedBy ? this.deletedBy.toJSON() : undefined; @@ -87570,7 +87570,7 @@ export class Project implements IProject { if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["landingPageInfo"] = this.landingPageInfo ? this.landingPageInfo.toJSON() : undefined; @@ -87602,7 +87602,7 @@ export class Project implements IProject { if (Array.isArray(this.versions)) { data["versions"] = []; for (let item of this.versions) - data["versions"].push(item.toJSON()); + data["versions"].push(item ? item.toJSON() : undefined); } return data; } @@ -87769,12 +87769,12 @@ export class ProjectAvatars implements IProjectAvatars { if (Array.isArray(this.custom)) { data["custom"] = []; for (let item of this.custom) - data["custom"].push(item.toJSON()); + data["custom"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -88150,7 +88150,7 @@ export class ProjectDataPolicies implements IProjectDataPolicies { if (Array.isArray(this.projectDataPolicies)) { data["projectDataPolicies"] = []; for (let item of this.projectDataPolicies) - data["projectDataPolicies"].push(item.toJSON()); + data["projectDataPolicies"].push(item ? item.toJSON() : undefined); } return data; } @@ -88806,7 +88806,7 @@ export class ProjectIssueCreateMetadata implements IProjectIssueCreateMetadata { if (Array.isArray(this.issuetypes)) { data["issuetypes"] = []; for (let item of this.issuetypes) - data["issuetypes"].push(item.toJSON()); + data["issuetypes"].push(item ? item.toJSON() : undefined); } data["key"] = this.key; data["name"] = this.name; @@ -88872,7 +88872,7 @@ export class ProjectIssueSecurityLevels implements IProjectIssueSecurityLevels { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } return data; } @@ -88923,7 +88923,7 @@ export class ProjectIssueTypeHierarchy implements IProjectIssueTypeHierarchy { if (Array.isArray(this.hierarchy)) { data["hierarchy"] = []; for (let item of this.hierarchy) - data["hierarchy"].push(item.toJSON()); + data["hierarchy"].push(item ? item.toJSON() : undefined); } data["projectId"] = this.projectId; return data; @@ -89023,7 +89023,7 @@ export class ProjectIssueTypeMappings implements IProjectIssueTypeMappings { if (Array.isArray(this.mappings)) { data["mappings"] = []; for (let item of this.mappings) - data["mappings"].push(item.toJSON()); + data["mappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -89133,7 +89133,7 @@ export class ProjectIssueTypesHierarchyLevel implements IProjectIssueTypesHierar if (Array.isArray(this.issueTypes)) { data["issueTypes"] = []; for (let item of this.issueTypes) - data["issueTypes"].push(item.toJSON()); + data["issueTypes"].push(item ? item.toJSON() : undefined); } data["level"] = this.level; data["name"] = this.name; @@ -89419,7 +89419,7 @@ export class ProjectRole implements IProjectRole { if (Array.isArray(this.actors)) { data["actors"] = []; for (let item of this.actors) - data["actors"].push(item.toJSON()); + data["actors"].push(item ? item.toJSON() : undefined); } data["admin"] = this.admin; data["currentUserRole"] = this.currentUserRole; @@ -89911,7 +89911,7 @@ export class ProjectUsagePage implements IProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -90053,7 +90053,7 @@ export class PropertyKeys implements IPropertyKeys { if (Array.isArray(this.keys)) { data["keys"] = []; for (let item of this.keys) - data["keys"].push(item.toJSON()); + data["keys"].push(item ? item.toJSON() : undefined); } return data; } @@ -90101,7 +90101,7 @@ export class PublishDraftWorkflowScheme implements IPublishDraftWorkflowScheme { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } return data; } @@ -91317,7 +91317,7 @@ export class RolePayload implements IRolePayload { if (Array.isArray(this.defaultActors)) { data["defaultActors"] = []; for (let item of this.defaultActors) - data["defaultActors"].push(item.toJSON()); + data["defaultActors"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["name"] = this.name; @@ -91394,7 +91394,7 @@ export class RolesCapabilityPayload implements IRolesCapabilityPayload { if (Array.isArray(this.roles)) { data["roles"] = []; for (let item of this.roles) - data["roles"].push(item.toJSON()); + data["roles"].push(item ? item.toJSON() : undefined); } return data; } @@ -91556,7 +91556,7 @@ export class SanitizedJqlQueries implements ISanitizedJqlQueries { if (Array.isArray(this.queries)) { data["queries"] = []; for (let item of this.queries) - data["queries"].push(item.toJSON()); + data["queries"].push(item ? item.toJSON() : undefined); } return data; } @@ -91875,7 +91875,7 @@ export class ScreenPayload implements IScreenPayload { if (Array.isArray(this.tabs)) { data["tabs"] = []; for (let item of this.tabs) - data["tabs"].push(item.toJSON()); + data["tabs"].push(item ? item.toJSON() : undefined); } return data; } @@ -92565,7 +92565,7 @@ export class SearchAndReconcileResults implements ISearchAndReconcileResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } if (this.names) { data["names"] = {}; @@ -92906,7 +92906,7 @@ export class SearchResults implements ISearchResults { if (Array.isArray(this.issues)) { data["issues"] = []; for (let item of this.issues) - data["issues"].push(item.toJSON()); + data["issues"].push(item ? item.toJSON() : undefined); } data["maxResults"] = this.maxResults; if (this.names) { @@ -93195,7 +93195,7 @@ export class SecurityLevelPayload implements ISecurityLevelPayload { if (Array.isArray(this.securityLevelMembers)) { data["securityLevelMembers"] = []; for (let item of this.securityLevelMembers) - data["securityLevelMembers"].push(item.toJSON()); + data["securityLevelMembers"].push(item ? item.toJSON() : undefined); } return data; } @@ -93266,7 +93266,7 @@ export class SecurityScheme implements ISecurityScheme { if (Array.isArray(this.levels)) { data["levels"] = []; for (let item of this.levels) - data["levels"].push(item.toJSON()); + data["levels"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; data["self"] = this.self; @@ -93387,7 +93387,7 @@ export class SecuritySchemeLevelBean implements ISecuritySchemeLevelBean { if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -93485,7 +93485,7 @@ export class SecuritySchemeMembersRequest implements ISecuritySchemeMembersReque if (Array.isArray(this.members)) { data["members"] = []; for (let item of this.members) - data["members"].push(item.toJSON()); + data["members"].push(item ? item.toJSON() : undefined); } return data; } @@ -93544,7 +93544,7 @@ export class SecuritySchemePayload implements ISecuritySchemePayload { if (Array.isArray(this.securityLevels)) { data["securityLevels"] = []; for (let item of this.securityLevels) - data["securityLevels"].push(item.toJSON()); + data["securityLevels"].push(item ? item.toJSON() : undefined); } return data; } @@ -93687,7 +93687,7 @@ export class SecuritySchemes implements ISecuritySchemes { if (Array.isArray(this.issueSecuritySchemes)) { data["issueSecuritySchemes"] = []; for (let item of this.issueSecuritySchemes) - data["issueSecuritySchemes"].push(item.toJSON()); + data["issueSecuritySchemes"].push(item ? item.toJSON() : undefined); } return data; } @@ -93785,7 +93785,7 @@ export class ServerInformation implements IServerInformation { if (Array.isArray(this.healthChecks)) { data["healthChecks"] = []; for (let item of this.healthChecks) - data["healthChecks"].push(item.toJSON()); + data["healthChecks"].push(item ? item.toJSON() : undefined); } data["scmInfo"] = this.scmInfo; data["serverTime"] = this.serverTime ? this.serverTime.toISOString() : undefined; @@ -94090,7 +94090,7 @@ export class SetDefaultLevelsRequest implements ISetDefaultLevelsRequest { if (Array.isArray(this.defaultValues)) { data["defaultValues"] = []; for (let item of this.defaultValues) - data["defaultValues"].push(item.toJSON()); + data["defaultValues"].push(item ? item.toJSON() : undefined); } return data; } @@ -94579,7 +94579,7 @@ export class SimpleListWrapperApplicationRole implements ISimpleListWrapperAppli if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -94639,7 +94639,7 @@ export class SimpleListWrapperGroupName implements ISimpleListWrapperGroupName { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["pagingCallback"] = this.pagingCallback ? this.pagingCallback.toJSON() : undefined; @@ -95144,7 +95144,7 @@ export class StatusCreateRequest implements IStatusCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -95435,7 +95435,7 @@ export class StatusMappingDTO implements IStatusMappingDTO { if (Array.isArray(this.statusMigrations)) { data["statusMigrations"] = []; for (let item of this.statusMigrations) - data["statusMigrations"].push(item.toJSON()); + data["statusMigrations"].push(item ? item.toJSON() : undefined); } return data; } @@ -95755,7 +95755,7 @@ export class StatusProjectIssueTypeUsagePage implements IStatusProjectIssueTypeU if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -95893,7 +95893,7 @@ export class StatusProjectUsagePage implements IStatusProjectUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -96060,7 +96060,7 @@ export class StatusUpdateRequest implements IStatusUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } return data; } @@ -96156,7 +96156,7 @@ export class StatusWorkflowUsagePage implements IStatusWorkflowUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -96711,7 +96711,7 @@ export class SystemAvatars implements ISystemAvatars { if (Array.isArray(this.system)) { data["system"] = []; for (let item of this.system) - data["system"].push(item.toJSON()); + data["system"].push(item ? item.toJSON() : undefined); } return data; } @@ -96762,7 +96762,7 @@ export class TabPayload implements ITabPayload { if (Array.isArray(this.fields)) { data["fields"] = []; for (let item of this.fields) - data["fields"].push(item.toJSON()); + data["fields"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; return data; @@ -97531,7 +97531,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -97539,7 +97539,7 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.from)) { data["from"] = []; for (let item of this.from) - data["from"].push(item.toJSON()); + data["from"].push(item ? item.toJSON() : undefined); } data["id"] = this.id; data["name"] = this.name; @@ -97555,13 +97555,13 @@ export class TransitionPayload implements ITransitionPayload { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -97738,7 +97738,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -97747,7 +97747,7 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -97762,13 +97762,13 @@ export class TransitionUpdateDTO implements ITransitionUpdateDTO { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -97844,7 +97844,7 @@ export class Transitions implements ITransitions { if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -97973,7 +97973,7 @@ export class UiModificationDetails implements IUiModificationDetails { if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -99215,7 +99215,7 @@ export class UpdateUiModificationDetails implements IUpdateUiModificationDetails if (Array.isArray(this.contexts)) { data["contexts"] = []; for (let item of this.contexts) - data["contexts"].push(item.toJSON()); + data["contexts"].push(item ? item.toJSON() : undefined); } data["data"] = this.data; data["description"] = this.description; @@ -99923,7 +99923,7 @@ export class UserList implements IUserList { if (Array.isArray(this.items)) { data["items"] = []; for (let item of this.items) - data["items"].push(item.toJSON()); + data["items"].push(item ? item.toJSON() : undefined); } data["max-results"] = this.maxResults; data["size"] = this.size; @@ -100439,7 +100439,7 @@ Optional for create and update. */ if (Array.isArray(this.approvers)) { data["approvers"] = []; for (let item of this.approvers) - data["approvers"].push(item.toJSON()); + data["approvers"].push(item ? item.toJSON() : undefined); } data["archived"] = this.archived; data["description"] = this.description; @@ -100452,7 +100452,7 @@ Optional for create and update. */ if (Array.isArray(this.operations)) { data["operations"] = []; for (let item of this.operations) - data["operations"].push(item.toJSON()); + data["operations"].push(item ? item.toJSON() : undefined); } data["overdue"] = this.overdue; data["project"] = this.project; @@ -100634,7 +100634,7 @@ export class VersionIssueCounts implements IVersionIssueCounts { if (Array.isArray(this.customFieldUsage)) { data["customFieldUsage"] = []; for (let item of this.customFieldUsage) - data["customFieldUsage"].push(item.toJSON()); + data["customFieldUsage"].push(item ? item.toJSON() : undefined); } data["issueCountWithCustomFieldsShowingVersion"] = this.issueCountWithCustomFieldsShowingVersion; data["issuesAffectedCount"] = this.issuesAffectedCount; @@ -101051,7 +101051,7 @@ export class Votes implements IVotes { if (Array.isArray(this.voters)) { data["voters"] = []; for (let item of this.voters) - data["voters"].push(item.toJSON()); + data["voters"].push(item ? item.toJSON() : undefined); } data["votes"] = this.votes; return data; @@ -101162,7 +101162,7 @@ export class Watchers implements IWatchers { if (Array.isArray(this.watchers)) { data["watchers"] = []; for (let item of this.watchers) - data["watchers"].push(item.toJSON()); + data["watchers"].push(item ? item.toJSON() : undefined); } return data; } @@ -101411,7 +101411,7 @@ export class WebhookRegistrationDetails implements IWebhookRegistrationDetails { if (Array.isArray(this.webhooks)) { data["webhooks"] = []; for (let item of this.webhooks) - data["webhooks"].push(item.toJSON()); + data["webhooks"].push(item ? item.toJSON() : undefined); } return data; } @@ -101598,22 +101598,22 @@ export class Workflow implements IWorkflow { if (Array.isArray(this.projects)) { data["projects"] = []; for (let item of this.projects) - data["projects"].push(item.toJSON()); + data["projects"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.schemes)) { data["schemes"] = []; for (let item of this.schemes) - data["schemes"].push(item.toJSON()); + data["schemes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["updated"] = this.updated ? this.updated.toISOString() : undefined; return data; @@ -101756,13 +101756,13 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.connectRules)) { data["connectRules"] = []; for (let item of this.connectRules) - data["connectRules"].push(item.toJSON()); + data["connectRules"].push(item ? item.toJSON() : undefined); } data["editorScope"] = this.editorScope; if (Array.isArray(this.forgeRules)) { data["forgeRules"] = []; for (let item of this.forgeRules) - data["forgeRules"].push(item.toJSON()); + data["forgeRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.projectTypes)) { data["projectTypes"] = []; @@ -101772,12 +101772,12 @@ export class WorkflowCapabilities implements IWorkflowCapabilities { if (Array.isArray(this.systemRules)) { data["systemRules"] = []; for (let item of this.systemRules) - data["systemRules"].push(item.toJSON()); + data["systemRules"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.triggerRules)) { data["triggerRules"] = []; for (let item of this.triggerRules) - data["triggerRules"].push(item.toJSON()); + data["triggerRules"].push(item ? item.toJSON() : undefined); } return data; } @@ -101843,13 +101843,13 @@ export class WorkflowCapabilityPayload implements IWorkflowCapabilityPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["workflowScheme"] = this.workflowScheme ? this.workflowScheme.toJSON() : undefined; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -101918,7 +101918,7 @@ export class WorkflowCompoundCondition implements IWorkflowCompoundCondition { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } data["nodeType"] = this.nodeType; data["operator"] = this.operator; @@ -102045,12 +102045,12 @@ export class WorkflowCreate implements IWorkflowCreate { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -102116,12 +102116,12 @@ export class WorkflowCreateRequest implements IWorkflowCreateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102179,12 +102179,12 @@ export class WorkflowCreateResponse implements IWorkflowCreateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -102552,7 +102552,7 @@ Use the optional `workflows.usages` expand to get additional information about t if (Array.isArray(this.usage)) { data["usage"] = []; for (let item of this.usage) - data["usage"].push(item.toJSON()); + data["usage"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -102687,12 +102687,12 @@ export class WorkflowPayload implements IWorkflowPayload { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } return data; } @@ -102845,7 +102845,7 @@ export class WorkflowProjectIssueTypeUsagePage implements IWorkflowProjectIssueT if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -102952,7 +102952,7 @@ export class WorkflowReadRequest implements IWorkflowReadRequest { if (Array.isArray(this.projectAndIssueTypes)) { data["projectAndIssueTypes"] = []; for (let item of this.projectAndIssueTypes) - data["projectAndIssueTypes"].push(item.toJSON()); + data["projectAndIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflowIds)) { data["workflowIds"] = []; @@ -103020,12 +103020,12 @@ export class WorkflowReadResponse implements IWorkflowReadResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -103221,12 +103221,12 @@ export class WorkflowRules implements IWorkflowRules { if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -103377,7 +103377,7 @@ export class WorkflowRulesSearchDetails implements IWorkflowRulesSearchDetails { if (Array.isArray(this.validRules)) { data["validRules"] = []; for (let item of this.validRules) - data["validRules"].push(item.toJSON()); + data["validRules"].push(item ? item.toJSON() : undefined); } data["workflowEntityId"] = this.workflowEntityId; return data; @@ -104018,7 +104018,7 @@ The IDs of projects using the workflow scheme. */ if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -104125,18 +104125,18 @@ export class WorkflowSchemeUpdateRequest implements IWorkflowSchemeUpdateRequest if (Array.isArray(this.statusMappingsByIssueTypeOverride)) { data["statusMappingsByIssueTypeOverride"] = []; for (let item of this.statusMappingsByIssueTypeOverride) - data["statusMappingsByIssueTypeOverride"].push(item.toJSON()); + data["statusMappingsByIssueTypeOverride"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -104210,7 +104210,7 @@ export class WorkflowSchemeUpdateRequiredMappingsRequest implements IWorkflowSch if (Array.isArray(this.workflowsForIssueTypes)) { data["workflowsForIssueTypes"] = []; for (let item of this.workflowsForIssueTypes) - data["workflowsForIssueTypes"].push(item.toJSON()); + data["workflowsForIssueTypes"].push(item ? item.toJSON() : undefined); } return data; } @@ -104282,22 +104282,22 @@ export class WorkflowSchemeUpdateRequiredMappingsResponse implements IWorkflowSc if (Array.isArray(this.statusMappingsByIssueTypes)) { data["statusMappingsByIssueTypes"] = []; for (let item of this.statusMappingsByIssueTypes) - data["statusMappingsByIssueTypes"].push(item.toJSON()); + data["statusMappingsByIssueTypes"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusMappingsByWorkflows)) { data["statusMappingsByWorkflows"] = []; for (let item of this.statusMappingsByWorkflows) - data["statusMappingsByWorkflows"].push(item.toJSON()); + data["statusMappingsByWorkflows"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statusesPerWorkflow)) { data["statusesPerWorkflow"] = []; for (let item of this.statusesPerWorkflow) - data["statusesPerWorkflow"].push(item.toJSON()); + data["statusesPerWorkflow"].push(item ? item.toJSON() : undefined); } return data; } @@ -104438,7 +104438,7 @@ export class WorkflowSchemeUsagePage implements IWorkflowSchemeUsagePage { if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -104562,13 +104562,13 @@ export class WorkflowSearchResponse implements IWorkflowSearchResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["total"] = this.total; if (Array.isArray(this.values)) { data["values"] = []; for (let item of this.values) - data["values"].push(item.toJSON()); + data["values"].push(item ? item.toJSON() : undefined); } return data; } @@ -105149,17 +105149,17 @@ export class WorkflowTransitionRules implements IWorkflowTransitionRules { if (Array.isArray(this.conditions)) { data["conditions"] = []; for (let item of this.conditions) - data["conditions"].push(item.toJSON()); + data["conditions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.postFunctions)) { data["postFunctions"] = []; for (let item of this.postFunctions) - data["postFunctions"].push(item.toJSON()); + data["postFunctions"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } data["workflowId"] = this.workflowId ? this.workflowId.toJSON() : undefined; return data; @@ -105272,7 +105272,7 @@ export class WorkflowTransitionRulesUpdate implements IWorkflowTransitionRulesUp if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -105398,7 +105398,7 @@ export class WorkflowTransitionRulesUpdateErrors implements IWorkflowTransitionR if (Array.isArray(this.updateResults)) { data["updateResults"] = []; for (let item of this.updateResults) - data["updateResults"].push(item.toJSON()); + data["updateResults"].push(item ? item.toJSON() : undefined); } return data; } @@ -105498,7 +105498,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.actions)) { data["actions"] = []; for (let item of this.actions) - data["actions"].push(item.toJSON()); + data["actions"].push(item ? item.toJSON() : undefined); } data["conditions"] = this.conditions ? this.conditions.toJSON() : undefined; data["customIssueEventId"] = this.customIssueEventId; @@ -105507,7 +105507,7 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.links)) { data["links"] = []; for (let item of this.links) - data["links"].push(item.toJSON()); + data["links"].push(item ? item.toJSON() : undefined); } data["name"] = this.name; if (this.properties) { @@ -105522,13 +105522,13 @@ export class WorkflowTransitions implements IWorkflowTransitions { if (Array.isArray(this.triggers)) { data["triggers"] = []; for (let item of this.triggers) - data["triggers"].push(item.toJSON()); + data["triggers"].push(item ? item.toJSON() : undefined); } data["type"] = this.type; if (Array.isArray(this.validators)) { data["validators"] = []; for (let item of this.validators) - data["validators"].push(item.toJSON()); + data["validators"].push(item ? item.toJSON() : undefined); } return data; } @@ -105713,7 +105713,7 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.defaultStatusMappings)) { data["defaultStatusMappings"] = []; for (let item of this.defaultStatusMappings) - data["defaultStatusMappings"].push(item.toJSON()); + data["defaultStatusMappings"].push(item ? item.toJSON() : undefined); } data["description"] = this.description; data["id"] = this.id; @@ -105722,17 +105722,17 @@ export class WorkflowUpdate implements IWorkflowUpdate { if (Array.isArray(this.statusMappings)) { data["statusMappings"] = []; for (let item of this.statusMappings) - data["statusMappings"].push(item.toJSON()); + data["statusMappings"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.transitions)) { data["transitions"] = []; for (let item of this.transitions) - data["transitions"].push(item.toJSON()); + data["transitions"].push(item ? item.toJSON() : undefined); } data["version"] = this.version ? this.version.toJSON() : undefined; return data; @@ -105803,12 +105803,12 @@ export class WorkflowUpdateRequest implements IWorkflowUpdateRequest { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -105867,13 +105867,13 @@ export class WorkflowUpdateResponse implements IWorkflowUpdateResponse { if (Array.isArray(this.statuses)) { data["statuses"] = []; for (let item of this.statuses) - data["statuses"].push(item.toJSON()); + data["statuses"].push(item ? item.toJSON() : undefined); } data["taskId"] = this.taskId; if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -106074,7 +106074,7 @@ export class WorkflowValidationErrorList implements IWorkflowValidationErrorList if (Array.isArray(this.errors)) { data["errors"] = []; for (let item of this.errors) - data["errors"].push(item.toJSON()); + data["errors"].push(item ? item.toJSON() : undefined); } return data; } @@ -106124,7 +106124,7 @@ export class WorkflowsWithTransitionRulesDetails implements IWorkflowsWithTransi if (Array.isArray(this.workflows)) { data["workflows"] = []; for (let item of this.workflows) - data["workflows"].push(item.toJSON()); + data["workflows"].push(item ? item.toJSON() : undefined); } return data; } @@ -106192,7 +106192,7 @@ export class WorkingDaysConfig implements IWorkingDaysConfig { if (Array.isArray(this.nonWorkingDays)) { data["nonWorkingDays"] = []; for (let item of this.nonWorkingDays) - data["nonWorkingDays"].push(item.toJSON()); + data["nonWorkingDays"].push(item ? item.toJSON() : undefined); } data["saturday"] = this.saturday; data["sunday"] = this.sunday; @@ -106305,7 +106305,7 @@ export class Worklog implements IWorklog { if (Array.isArray(this.properties)) { data["properties"] = []; for (let item of this.properties) - data["properties"].push(item.toJSON()); + data["properties"].push(item ? item.toJSON() : undefined); } data["self"] = this.self; data["started"] = this.started ? this.started.toISOString() : undefined; @@ -106828,17 +106828,17 @@ The new values will only be applied if the source status is invalid for the targ if (Array.isArray(this.targetClassification)) { data["targetClassification"] = []; for (let item of this.targetClassification) - data["targetClassification"].push(item.toJSON()); + data["targetClassification"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetMandatoryFields)) { data["targetMandatoryFields"] = []; for (let item of this.targetMandatoryFields) - data["targetMandatoryFields"].push(item.toJSON()); + data["targetMandatoryFields"].push(item ? item.toJSON() : undefined); } if (Array.isArray(this.targetStatus)) { data["targetStatus"] = []; for (let item of this.targetStatus) - data["targetStatus"].push(item.toJSON()); + data["targetStatus"].push(item ? item.toJSON() : undefined); } return data; } diff --git a/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj b/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj index a443377e3..b2988b4ec 100644 --- a/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj +++ b/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj b/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj index 04c10ae00..19681dc32 100644 --- a/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj +++ b/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj b/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj index 46e4da129..6b8833fc6 100644 --- a/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj +++ b/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/NSwag.Core/NSwag.Core.csproj b/src/NSwag.Core/NSwag.Core.csproj index 11b9f5f61..175bcaf40 100644 --- a/src/NSwag.Core/NSwag.Core.csproj +++ b/src/NSwag.Core/NSwag.Core.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/NSwag.Generation/NSwag.Generation.csproj b/src/NSwag.Generation/NSwag.Generation.csproj index ba908f30a..9e5dc157e 100644 --- a/src/NSwag.Generation/NSwag.Generation.csproj +++ b/src/NSwag.Generation/NSwag.Generation.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/NSwagStudio/NSwagStudio.csproj b/src/NSwagStudio/NSwagStudio.csproj index 9ac9e83ce..f9528d0e3 100644 --- a/src/NSwagStudio/NSwagStudio.csproj +++ b/src/NSwagStudio/NSwagStudio.csproj @@ -62,7 +62,7 @@ - +