@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
42 lines • 1.35 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* 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 { V1ClockOffsetUTCFromJSON, V1ClockOffsetUTCToJSON, V1TimerFromJSON, V1TimerToJSON, } from './';
export function V1ClockFromJSON(json) {
return V1ClockFromJSONTyped(json, false);
}
export function V1ClockFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
timer: !exists(json, 'timer') ? undefined : V1TimerFromJSON(json['timer']),
timezone: !exists(json, 'timezone') ? undefined : json['timezone'],
utc: !exists(json, 'utc') ? undefined : V1ClockOffsetUTCFromJSON(json['utc']),
};
}
export function V1ClockToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
timer: V1TimerToJSON(value.timer),
timezone: value.timezone,
utc: V1ClockOffsetUTCToJSON(value.utc),
};
}
//# sourceMappingURL=V1Clock.js.map