fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
38 lines (37 loc) • 1.94 kB
JavaScript
// 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const runtime_1 = require("../runtime");
const _1 = require("./");
function IssueTransitionFromJSON(json) {
return IssueTransitionFromJSONTyped(json, false);
}
exports.IssueTransitionFromJSON = IssueTransitionFromJSON;
function IssueTransitionFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return Object.assign(Object.assign({}, json), { 'id': !runtime_1.exists(json, 'id') ? undefined : json['id'], 'name': !runtime_1.exists(json, 'name') ? undefined : json['name'], 'to': !runtime_1.exists(json, 'to') ? undefined : _1.StatusDetailsFromJSON(json['to']), 'hasScreen': !runtime_1.exists(json, 'hasScreen') ? undefined : json['hasScreen'], 'isGlobal': !runtime_1.exists(json, 'isGlobal') ? undefined : json['isGlobal'], 'isInitial': !runtime_1.exists(json, 'isInitial') ? undefined : json['isInitial'], 'isConditional': !runtime_1.exists(json, 'isConditional') ? undefined : json['isConditional'], 'fields': !runtime_1.exists(json, 'fields') ? undefined : runtime_1.mapValues(json['fields'], _1.FieldMetadataFromJSON), 'expand': !runtime_1.exists(json, 'expand') ? undefined : json['expand'] });
}
exports.IssueTransitionFromJSONTyped = IssueTransitionFromJSONTyped;
function IssueTransitionToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return Object.assign(Object.assign({}, value), { 'id': value.id });
}
exports.IssueTransitionToJSON = IssueTransitionToJSON;
;