fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
47 lines • 1.98 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.
*/
import { exists } from '../runtime';
import { DateDTOFromJSON, DateDTOToJSON, DurationDTOFromJSON, DurationDTOToJSON, } from './';
export function SlaInformationCompletedCycleDTOFromJSON(json) {
return SlaInformationCompletedCycleDTOFromJSONTyped(json, false);
}
export function SlaInformationCompletedCycleDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'startTime': !exists(json, 'startTime') ? undefined : DateDTOFromJSON(json['startTime']),
'stopTime': !exists(json, 'stopTime') ? undefined : DateDTOFromJSON(json['stopTime']),
'breached': !exists(json, 'breached') ? undefined : json['breached'],
'goalDuration': !exists(json, 'goalDuration') ? undefined : DurationDTOFromJSON(json['goalDuration']),
'elapsedTime': !exists(json, 'elapsedTime') ? undefined : DurationDTOFromJSON(json['elapsedTime']),
'remainingTime': !exists(json, 'remainingTime') ? undefined : DurationDTOFromJSON(json['remainingTime']),
};
}
export function SlaInformationCompletedCycleDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'startTime': DateDTOToJSON(value.startTime),
'stopTime': DateDTOToJSON(value.stopTime),
'breached': value.breached,
'goalDuration': DurationDTOToJSON(value.goalDuration),
'elapsedTime': DurationDTOToJSON(value.elapsedTime),
'remainingTime': DurationDTOToJSON(value.remainingTime),
};
}
//# sourceMappingURL=SlaInformationCompletedCycleDTO.js.map