fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
52 lines (51 loc) • 2.28 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 SlaInformationCompletedCycleDTOFromJSON(json) {
return SlaInformationCompletedCycleDTOFromJSONTyped(json, false);
}
exports.SlaInformationCompletedCycleDTOFromJSON = SlaInformationCompletedCycleDTOFromJSON;
function SlaInformationCompletedCycleDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'startTime': !runtime_1.exists(json, 'startTime') ? undefined : _1.DateDTOFromJSON(json['startTime']),
'stopTime': !runtime_1.exists(json, 'stopTime') ? undefined : _1.DateDTOFromJSON(json['stopTime']),
'breached': !runtime_1.exists(json, 'breached') ? undefined : json['breached'],
'goalDuration': !runtime_1.exists(json, 'goalDuration') ? undefined : _1.DurationDTOFromJSON(json['goalDuration']),
'elapsedTime': !runtime_1.exists(json, 'elapsedTime') ? undefined : _1.DurationDTOFromJSON(json['elapsedTime']),
'remainingTime': !runtime_1.exists(json, 'remainingTime') ? undefined : _1.DurationDTOFromJSON(json['remainingTime']),
};
}
exports.SlaInformationCompletedCycleDTOFromJSONTyped = SlaInformationCompletedCycleDTOFromJSONTyped;
function SlaInformationCompletedCycleDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'startTime': _1.DateDTOToJSON(value.startTime),
'stopTime': _1.DateDTOToJSON(value.stopTime),
'breached': value.breached,
'goalDuration': _1.DurationDTOToJSON(value.goalDuration),
'elapsedTime': _1.DurationDTOToJSON(value.elapsedTime),
'remainingTime': _1.DurationDTOToJSON(value.remainingTime),
};
}
exports.SlaInformationCompletedCycleDTOToJSON = SlaInformationCompletedCycleDTOToJSON;
;