/* tslint:disable */ /* eslint-disable */ /** * Jellyfin API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 10.8.9 * * * 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, mapValues } from '../runtime'; /** * Class UtcTimeResponse. * @export * @interface UtcTimeResponse */ export interface UtcTimeResponse { /** * Gets the UTC time when request has been received. * @type {Date} * @memberof UtcTimeResponse */ requestReceptionTime?: Date; /** * Gets the UTC time when response has been sent. * @type {Date} * @memberof UtcTimeResponse */ responseTransmissionTime?: Date; } /** * Check if a given object implements the UtcTimeResponse interface. */ export function instanceOfUtcTimeResponse(value: object): boolean { let isInstance = true; return isInstance; } export function UtcTimeResponseFromJSON(json: any): UtcTimeResponse { return UtcTimeResponseFromJSONTyped(json, false); } export function UtcTimeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtcTimeResponse { if ((json === undefined) || (json === null)) { return json; } return { 'requestReceptionTime': !exists(json, 'RequestReceptionTime') ? undefined : (new Date(json['RequestReceptionTime'])), 'responseTransmissionTime': !exists(json, 'ResponseTransmissionTime') ? undefined : (new Date(json['ResponseTransmissionTime'])), }; } export function UtcTimeResponseToJSON(value?: UtcTimeResponse | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'RequestReceptionTime': value.requestReceptionTime === undefined ? undefined : (value.requestReceptionTime.toISOString()), 'ResponseTransmissionTime': value.responseTransmissionTime === undefined ? undefined : (value.responseTransmissionTime.toISOString()), }; }