fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
51 lines (50 loc) • 2.01 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");
function RequestCreateDTOFromJSON(json) {
return RequestCreateDTOFromJSONTyped(json, false);
}
exports.RequestCreateDTOFromJSON = RequestCreateDTOFromJSON;
function RequestCreateDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'serviceDeskId': !runtime_1.exists(json, 'serviceDeskId') ? undefined : json['serviceDeskId'],
'requestTypeId': !runtime_1.exists(json, 'requestTypeId') ? undefined : json['requestTypeId'],
'requestFieldValues': !runtime_1.exists(json, 'requestFieldValues') ? undefined : json['requestFieldValues'],
'requestParticipants': !runtime_1.exists(json, 'requestParticipants') ? undefined : json['requestParticipants'],
'raiseOnBehalfOf': !runtime_1.exists(json, 'raiseOnBehalfOf') ? undefined : json['raiseOnBehalfOf'],
'channel': !runtime_1.exists(json, 'channel') ? undefined : json['channel'],
};
}
exports.RequestCreateDTOFromJSONTyped = RequestCreateDTOFromJSONTyped;
function RequestCreateDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'serviceDeskId': value.serviceDeskId,
'requestTypeId': value.requestTypeId,
'requestFieldValues': value.requestFieldValues,
'requestParticipants': value.requestParticipants,
'raiseOnBehalfOf': value.raiseOnBehalfOf,
'channel': value.channel,
};
}
exports.RequestCreateDTOToJSON = RequestCreateDTOToJSON;
;