/* 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 ImageMetadataBlockExtensionContext */ export interface ImageMetadataBlockExtensionContext { /** * * @type {string} * @memberof ImageMetadataBlockExtensionContext */ 'noteType': ImageMetadataBlockExtensionContextNoteTypeEnum; /** * * @type {string} * @memberof ImageMetadataBlockExtensionContext */ 'closestPath': string; /** * * @type {string} * @memberof ImageMetadataBlockExtensionContext */ 'domImageUrl'?: string | null; /** * * @type {string} * @memberof ImageMetadataBlockExtensionContext */ 'domImageLSH'?: string | null; } /** * @export */ export const ImageMetadataBlockExtensionContextNoteTypeEnum = { Image: 'image' } as const; export type ImageMetadataBlockExtensionContextNoteTypeEnum = typeof ImageMetadataBlockExtensionContextNoteTypeEnum[keyof typeof ImageMetadataBlockExtensionContextNoteTypeEnum]; /** * Check if a given object implements the ImageMetadataBlockExtensionContext interface. */ export function instanceOfImageMetadataBlockExtensionContext(value: object): value is ImageMetadataBlockExtensionContext { if (!('noteType' in value) || value['noteType'] === undefined) return false; if (!('closestPath' in value) || value['closestPath'] === undefined) return false; return true; } export function ImageMetadataBlockExtensionContextFromJSON(json: any): ImageMetadataBlockExtensionContext { return ImageMetadataBlockExtensionContextFromJSONTyped(json, false); } export function ImageMetadataBlockExtensionContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageMetadataBlockExtensionContext { if (json == null) { return json; } const result = { } as ImageMetadataBlockExtensionContext; if (json['noteType'] !== undefined) { result['noteType'] = json['noteType']; } if (json['closestPath'] !== undefined) { result['closestPath'] = json['closestPath']; } if (json['domImageUrl'] !== undefined) { if (json['domImageUrl'] === null) { result['domImageUrl'] = null; } else { result['domImageUrl'] = json['domImageUrl']; } } if (json['domImageLSH'] !== undefined) { if (json['domImageLSH'] === null) { result['domImageLSH'] = null; } else { result['domImageLSH'] = json['domImageLSH']; } } return result; } export function ImageMetadataBlockExtensionContextToJSON(json: any): ImageMetadataBlockExtensionContext { return ImageMetadataBlockExtensionContextToJSONTyped(json, false); } export function ImageMetadataBlockExtensionContextToJSONTyped(value?: ImageMetadataBlockExtensionContext | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'noteType': value['noteType'], 'closestPath': value['closestPath'], 'domImageUrl': value['domImageUrl'], 'domImageLSH': value['domImageLSH'], }; }