UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

43 lines 1.41 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'; export function IoK8sApiAuthenticationV1UserInfoFromJSON(json) { return IoK8sApiAuthenticationV1UserInfoFromJSONTyped(json, false); } export function IoK8sApiAuthenticationV1UserInfoFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { extra: !exists(json, 'extra') ? undefined : json['extra'], groups: !exists(json, 'groups') ? undefined : json['groups'], uid: !exists(json, 'uid') ? undefined : json['uid'], username: !exists(json, 'username') ? undefined : json['username'], }; } export function IoK8sApiAuthenticationV1UserInfoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { extra: value.extra, groups: value.groups, uid: value.uid, username: value.username, }; } //# sourceMappingURL=IoK8sApiAuthenticationV1UserInfo.js.map