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.62 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 StatusDetailsFromJSON(json) {
return StatusDetailsFromJSONTyped(json, false);
}
exports.StatusDetailsFromJSON = StatusDetailsFromJSON;
function StatusDetailsFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return Object.assign(Object.assign({}, json), { 'self': !runtime_1.exists(json, 'self') ? undefined : json['self'], 'description': !runtime_1.exists(json, 'description') ? undefined : json['description'], 'iconUrl': !runtime_1.exists(json, 'iconUrl') ? undefined : json['iconUrl'], 'name': !runtime_1.exists(json, 'name') ? undefined : json['name'], 'id': !runtime_1.exists(json, 'id') ? undefined : json['id'], 'statusCategory': !runtime_1.exists(json, 'statusCategory') ? undefined : _1.StatusCategoryFromJSON(json['statusCategory']) });
}
exports.StatusDetailsFromJSONTyped = StatusDetailsFromJSONTyped;
function StatusDetailsToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return Object.assign({}, value);
}
exports.StatusDetailsToJSON = StatusDetailsToJSON;
;