UNPKG

fetch-jsd

Version:

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

51 lines 2.25 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, DurationDTOFromJSON, DurationDTOToJSON, } from './'; export function SlaInformationOngoingCycleDTOFromJSON(json) { return SlaInformationOngoingCycleDTOFromJSONTyped(json, false); } export function SlaInformationOngoingCycleDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'startTime': !exists(json, 'startTime') ? undefined : DateDTOFromJSON(json['startTime']), 'breachTime': !exists(json, 'breachTime') ? undefined : DateDTOFromJSON(json['breachTime']), 'breached': !exists(json, 'breached') ? undefined : json['breached'], 'paused': !exists(json, 'paused') ? undefined : json['paused'], 'withinCalendarHours': !exists(json, 'withinCalendarHours') ? undefined : json['withinCalendarHours'], '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 SlaInformationOngoingCycleDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'startTime': DateDTOToJSON(value.startTime), 'breachTime': DateDTOToJSON(value.breachTime), 'breached': value.breached, 'paused': value.paused, 'withinCalendarHours': value.withinCalendarHours, 'goalDuration': DurationDTOToJSON(value.goalDuration), 'elapsedTime': DurationDTOToJSON(value.elapsedTime), 'remainingTime': DurationDTOToJSON(value.remainingTime), }; } //# sourceMappingURL=SlaInformationOngoingCycleDTO.js.map