UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.51 kB
/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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 { IoK8sApiCoreV1NamespaceConditionFromJSON, IoK8sApiCoreV1NamespaceConditionToJSON, } from './'; export function IoK8sApiCoreV1NamespaceStatusFromJSON(json) { return IoK8sApiCoreV1NamespaceStatusFromJSONTyped(json, false); } export function IoK8sApiCoreV1NamespaceStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { conditions: !exists(json, 'conditions') ? undefined : json['conditions'].map(IoK8sApiCoreV1NamespaceConditionFromJSON), phase: !exists(json, 'phase') ? undefined : json['phase'], }; } export function IoK8sApiCoreV1NamespaceStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { conditions: value.conditions === undefined ? undefined : value.conditions.map(IoK8sApiCoreV1NamespaceConditionToJSON), phase: value.phase, }; } //# sourceMappingURL=IoK8sApiCoreV1NamespaceStatus.js.map