UNPKG

fetch-jsd

Version:

A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.

33 lines 1.69 kB
// tslint:disable /** * Service Desk Public REST API * Public REST API for Jira Service Desk * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { FieldMetadataFromJSON, StatusDetailsFromJSON, } from './'; export function IssueTransitionFromJSON(json) { return IssueTransitionFromJSONTyped(json, false); } export function IssueTransitionFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return Object.assign(Object.assign({}, json), { 'id': !exists(json, 'id') ? undefined : json['id'], 'name': !exists(json, 'name') ? undefined : json['name'], 'to': !exists(json, 'to') ? undefined : StatusDetailsFromJSON(json['to']), 'hasScreen': !exists(json, 'hasScreen') ? undefined : json['hasScreen'], 'isGlobal': !exists(json, 'isGlobal') ? undefined : json['isGlobal'], 'isInitial': !exists(json, 'isInitial') ? undefined : json['isInitial'], 'isConditional': !exists(json, 'isConditional') ? undefined : json['isConditional'], 'fields': !exists(json, 'fields') ? undefined : mapValues(json['fields'], FieldMetadataFromJSON), 'expand': !exists(json, 'expand') ? undefined : json['expand'] }); } export function IssueTransitionToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return Object.assign(Object.assign({}, value), { 'id': value.id }); } //# sourceMappingURL=IssueTransition.js.map