/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ResourceIconOneOf1 */ export interface ResourceIconOneOf1 { /** * * @type {string} * @memberof ResourceIconOneOf1 */ 'type': ResourceIconOneOf1TypeEnum; /** * * @type {string} * @memberof ResourceIconOneOf1 */ 'predefined': string; } /** * @export */ export const ResourceIconOneOf1TypeEnum = { Predefined: 'predefined' } as const; export type ResourceIconOneOf1TypeEnum = typeof ResourceIconOneOf1TypeEnum[keyof typeof ResourceIconOneOf1TypeEnum]; /** * Check if a given object implements the ResourceIconOneOf1 interface. */ export function instanceOfResourceIconOneOf1(value: object): value is ResourceIconOneOf1 { if (!('type' in value) || value['type'] === undefined) return false; if (!('predefined' in value) || value['predefined'] === undefined) return false; return true; } export function ResourceIconOneOf1FromJSON(json: any): ResourceIconOneOf1 { return ResourceIconOneOf1FromJSONTyped(json, false); } export function ResourceIconOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceIconOneOf1 { if (json == null) { return json; } const result = { } as ResourceIconOneOf1; if (json['type'] !== undefined) { result['type'] = json['type']; } if (json['predefined'] !== undefined) { result['predefined'] = json['predefined']; } return result; } export function ResourceIconOneOf1ToJSON(json: any): ResourceIconOneOf1 { return ResourceIconOneOf1ToJSONTyped(json, false); } export function ResourceIconOneOf1ToJSONTyped(value?: ResourceIconOneOf1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'predefined': value['predefined'], }; }