/* 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 type { CreateFolderRequestIconOneOf } from './CreateFolderRequestIconOneOf'; import { instanceOfCreateFolderRequestIconOneOf, CreateFolderRequestIconOneOfFromJSON, CreateFolderRequestIconOneOfFromJSONTyped, CreateFolderRequestIconOneOfToJSON, } from './CreateFolderRequestIconOneOf'; import type { CreateFolderRequestIconOneOf1 } from './CreateFolderRequestIconOneOf1'; import { instanceOfCreateFolderRequestIconOneOf1, CreateFolderRequestIconOneOf1FromJSON, CreateFolderRequestIconOneOf1FromJSONTyped, CreateFolderRequestIconOneOf1ToJSON, } from './CreateFolderRequestIconOneOf1'; import type { CreateFolderRequestIconOneOf2 } from './CreateFolderRequestIconOneOf2'; import { instanceOfCreateFolderRequestIconOneOf2, CreateFolderRequestIconOneOf2FromJSON, CreateFolderRequestIconOneOf2FromJSONTyped, CreateFolderRequestIconOneOf2ToJSON, } from './CreateFolderRequestIconOneOf2'; /** * @type CreateFolderRequestIcon * * @export */ export type CreateFolderRequestIcon = CreateFolderRequestIconOneOf | CreateFolderRequestIconOneOf1 | CreateFolderRequestIconOneOf2; export function CreateFolderRequestIconFromJSON(json: any): CreateFolderRequestIcon { return CreateFolderRequestIconFromJSONTyped(json, false); } export function CreateFolderRequestIconFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFolderRequestIcon { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if (instanceOfCreateFolderRequestIconOneOf(json)) { return CreateFolderRequestIconOneOfFromJSONTyped(json, true); } if (instanceOfCreateFolderRequestIconOneOf1(json)) { return CreateFolderRequestIconOneOf1FromJSONTyped(json, true); } if (instanceOfCreateFolderRequestIconOneOf2(json)) { return CreateFolderRequestIconOneOf2FromJSONTyped(json, true); } return {} as any; } export function CreateFolderRequestIconToJSON(json: any): any { return CreateFolderRequestIconToJSONTyped(json, false); } export function CreateFolderRequestIconToJSONTyped(value?: CreateFolderRequestIcon | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if (instanceOfCreateFolderRequestIconOneOf(value)) { return CreateFolderRequestIconOneOfToJSON(value as CreateFolderRequestIconOneOf); } if (instanceOfCreateFolderRequestIconOneOf1(value)) { return CreateFolderRequestIconOneOf1ToJSON(value as CreateFolderRequestIconOneOf1); } if (instanceOfCreateFolderRequestIconOneOf2(value)) { return CreateFolderRequestIconOneOf2ToJSON(value as CreateFolderRequestIconOneOf2); } return {}; }