/* 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 { IoK8sApiFlowcontrolV1FlowSchemaCondition, IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSON, IoK8sApiFlowcontrolV1FlowSchemaConditionToJSON, } from './'; /** * FlowSchemaStatus represents the current state of a FlowSchema. * @export * @interface IoK8sApiFlowcontrolV1FlowSchemaStatus */ export interface IoK8sApiFlowcontrolV1FlowSchemaStatus { /** * `conditions` is a list of the current states of FlowSchema. * @type {Array} * @memberof IoK8sApiFlowcontrolV1FlowSchemaStatus */ conditions?: Array; } export function IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSON( json: any, ): IoK8sApiFlowcontrolV1FlowSchemaStatus { return IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSONTyped(json, false); } export function IoK8sApiFlowcontrolV1FlowSchemaStatusFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiFlowcontrolV1FlowSchemaStatus { if (json === undefined || json === null) { return json; } return { conditions: !exists(json, 'conditions') ? undefined : (json['conditions'] as Array).map(IoK8sApiFlowcontrolV1FlowSchemaConditionFromJSON), }; } export function IoK8sApiFlowcontrolV1FlowSchemaStatusToJSON( value?: IoK8sApiFlowcontrolV1FlowSchemaStatus | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { conditions: value.conditions === undefined ? undefined : (value.conditions as Array).map(IoK8sApiFlowcontrolV1FlowSchemaConditionToJSON), }; }