UNPKG

fetch-jsd

Version:

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

47 lines 1.82 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 } from '../runtime'; import { DateDTOFromJSON, DateDTOToJSON, SelfLinkDTOFromJSON, SelfLinkDTOToJSON, } from './'; export function SoftwareInfoDTOFromJSON(json) { return SoftwareInfoDTOFromJSONTyped(json, false); } export function SoftwareInfoDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'version': !exists(json, 'version') ? undefined : json['version'], 'platformVersion': !exists(json, 'platformVersion') ? undefined : json['platformVersion'], 'buildDate': !exists(json, 'buildDate') ? undefined : DateDTOFromJSON(json['buildDate']), 'buildChangeSet': !exists(json, 'buildChangeSet') ? undefined : json['buildChangeSet'], 'isLicensedForUse': !exists(json, 'isLicensedForUse') ? undefined : json['isLicensedForUse'], '_links': !exists(json, '_links') ? undefined : SelfLinkDTOFromJSON(json['_links']), }; } export function SoftwareInfoDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'version': value.version, 'platformVersion': value.platformVersion, 'buildDate': DateDTOToJSON(value.buildDate), 'buildChangeSet': value.buildChangeSet, 'isLicensedForUse': value.isLicensedForUse, '_links': SelfLinkDTOToJSON(value._links), }; } //# sourceMappingURL=SoftwareInfoDTO.js.map