/* 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 ResourceIconOneOf2 */ export interface ResourceIconOneOf2 { /** * * @type {string} * @memberof ResourceIconOneOf2 */ 'type': ResourceIconOneOf2TypeEnum; /** * * @type {PresignedImage} * @memberof ResourceIconOneOf2 */ 'customImage': PresignedImage; } /** * @export */ export const ResourceIconOneOf2TypeEnum = { CustomImage: 'customImage' } as const; export type ResourceIconOneOf2TypeEnum = typeof ResourceIconOneOf2TypeEnum[keyof typeof ResourceIconOneOf2TypeEnum]; /** * Check if a given object implements the ResourceIconOneOf2 interface. */ export function instanceOfResourceIconOneOf2(value: object): value is ResourceIconOneOf2 { if (!('type' in value) || value['type'] === undefined) return false; if (!('customImage' in value) || value['customImage'] === undefined) return false; return true; } export function ResourceIconOneOf2FromJSON(json: any): ResourceIconOneOf2 { return ResourceIconOneOf2FromJSONTyped(json, false); } export function ResourceIconOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceIconOneOf2 { if (json == null) { return json; } const result = { } as ResourceIconOneOf2; if (json['type'] !== undefined) { result['type'] = json['type']; } if (json['customImage'] !== undefined) { result['customImage'] = PresignedImageFromJSON(json['customImage']); } return result; } export function ResourceIconOneOf2ToJSON(json: any): ResourceIconOneOf2 { return ResourceIconOneOf2ToJSONTyped(json, false); } export function ResourceIconOneOf2ToJSONTyped(value?: ResourceIconOneOf2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'customImage': PresignedImageToJSON(value['customImage']), }; }