/* 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'; import type { PresignedImage } from './PresignedImage'; import { PresignedImageFromJSON, PresignedImageFromJSONTyped, PresignedImageToJSON, PresignedImageToJSONTyped, } from './PresignedImage'; /** * * @export * @interface FolderAllOfIcon */ export interface FolderAllOfIcon { /** * * @type {string} * @memberof FolderAllOfIcon */ 'type': FolderAllOfIconTypeEnum; /** * * @type {string} * @memberof FolderAllOfIcon */ 'emoji': string; /** * * @type {string} * @memberof FolderAllOfIcon */ 'predefined': string; /** * * @type {PresignedImage} * @memberof FolderAllOfIcon */ 'customImage': PresignedImage; } /** * @export */ export const FolderAllOfIconTypeEnum = { CustomImage: 'customImage' } as const; export type FolderAllOfIconTypeEnum = typeof FolderAllOfIconTypeEnum[keyof typeof FolderAllOfIconTypeEnum]; /** * Check if a given object implements the FolderAllOfIcon interface. */ export function instanceOfFolderAllOfIcon(value: object): value is FolderAllOfIcon { if (!('type' in value) || value['type'] === undefined) return false; if (!('emoji' in value) || value['emoji'] === undefined) return false; if (!('predefined' in value) || value['predefined'] === undefined) return false; if (!('customImage' in value) || value['customImage'] === undefined) return false; return true; } export function FolderAllOfIconFromJSON(json: any): FolderAllOfIcon { return FolderAllOfIconFromJSONTyped(json, false); } export function FolderAllOfIconFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderAllOfIcon { if (json == null) { return json; } const result = { } as FolderAllOfIcon; if (json['type'] !== undefined) { result['type'] = json['type']; } if (json['emoji'] !== undefined) { result['emoji'] = json['emoji']; } if (json['predefined'] !== undefined) { result['predefined'] = json['predefined']; } if (json['customImage'] !== undefined) { result['customImage'] = PresignedImageFromJSON(json['customImage']); } return result; } export function FolderAllOfIconToJSON(json: any): FolderAllOfIcon { return FolderAllOfIconToJSONTyped(json, false); } export function FolderAllOfIconToJSONTyped(value?: FolderAllOfIcon | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'emoji': value['emoji'], 'predefined': value['predefined'], 'customImage': PresignedImageToJSON(value['customImage']), }; }