UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.48 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * 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 { V1LabelSelectorRequirementFromJSON, V1LabelSelectorRequirementToJSON, } from './'; export function V1LabelSelectorFromJSON(json) { return V1LabelSelectorFromJSONTyped(json, false); } export function V1LabelSelectorFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { matchExpressions: !exists(json, 'matchExpressions') ? undefined : json['matchExpressions'].map(V1LabelSelectorRequirementFromJSON), matchLabels: !exists(json, 'matchLabels') ? undefined : json['matchLabels'], }; } export function V1LabelSelectorToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { matchExpressions: value.matchExpressions === undefined ? undefined : value.matchExpressions.map(V1LabelSelectorRequirementToJSON), matchLabels: value.matchLabels, }; } //# sourceMappingURL=V1LabelSelector.js.map