/* 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 { ImageMetadataBlockAttributesLocation } from './ImageMetadataBlockAttributesLocation'; import { ImageMetadataBlockAttributesLocationFromJSON, ImageMetadataBlockAttributesLocationFromJSONTyped, ImageMetadataBlockAttributesLocationToJSON, ImageMetadataBlockAttributesLocationToJSONTyped, } from './ImageMetadataBlockAttributesLocation'; import type { ImageMetadataBlockAttributesColor } from './ImageMetadataBlockAttributesColor'; import { ImageMetadataBlockAttributesColorFromJSON, ImageMetadataBlockAttributesColorFromJSONTyped, ImageMetadataBlockAttributesColorToJSON, ImageMetadataBlockAttributesColorToJSONTyped, } from './ImageMetadataBlockAttributesColor'; import type { ImageMetadataBlockAttributesDevice } from './ImageMetadataBlockAttributesDevice'; import { ImageMetadataBlockAttributesDeviceFromJSON, ImageMetadataBlockAttributesDeviceFromJSONTyped, ImageMetadataBlockAttributesDeviceToJSON, ImageMetadataBlockAttributesDeviceToJSONTyped, } from './ImageMetadataBlockAttributesDevice'; import type { DocumentMetadataBlockAttributesDimensions } from './DocumentMetadataBlockAttributesDimensions'; import { DocumentMetadataBlockAttributesDimensionsFromJSON, DocumentMetadataBlockAttributesDimensionsFromJSONTyped, DocumentMetadataBlockAttributesDimensionsToJSON, DocumentMetadataBlockAttributesDimensionsToJSONTyped, } from './DocumentMetadataBlockAttributesDimensions'; /** * * @export * @interface ImageMetadataBlockAttributes */ export interface ImageMetadataBlockAttributes { /** * * @type {DocumentMetadataBlockAttributesDimensions} * @memberof ImageMetadataBlockAttributes */ 'dimensions'?: DocumentMetadataBlockAttributesDimensions | null; /** * * @type {ImageMetadataBlockAttributesColor} * @memberof ImageMetadataBlockAttributes */ 'color'?: ImageMetadataBlockAttributesColor | null; /** * * @type {ImageMetadataBlockAttributesDevice} * @memberof ImageMetadataBlockAttributes */ 'device'?: ImageMetadataBlockAttributesDevice | null; /** * * @type {ImageMetadataBlockAttributesLocation} * @memberof ImageMetadataBlockAttributes */ 'location'?: ImageMetadataBlockAttributesLocation | null; } /** * Check if a given object implements the ImageMetadataBlockAttributes interface. */ export function instanceOfImageMetadataBlockAttributes(value: object): value is ImageMetadataBlockAttributes { return true; } export function ImageMetadataBlockAttributesFromJSON(json: any): ImageMetadataBlockAttributes { return ImageMetadataBlockAttributesFromJSONTyped(json, false); } export function ImageMetadataBlockAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageMetadataBlockAttributes { if (json == null) { return json; } const result = { } as ImageMetadataBlockAttributes; if (json['dimensions'] !== undefined) { if (json['dimensions'] === null) { result['dimensions'] = null; } else { result['dimensions'] = DocumentMetadataBlockAttributesDimensionsFromJSON(json['dimensions']); } } if (json['color'] !== undefined) { if (json['color'] === null) { result['color'] = null; } else { result['color'] = ImageMetadataBlockAttributesColorFromJSON(json['color']); } } if (json['device'] !== undefined) { if (json['device'] === null) { result['device'] = null; } else { result['device'] = ImageMetadataBlockAttributesDeviceFromJSON(json['device']); } } if (json['location'] !== undefined) { if (json['location'] === null) { result['location'] = null; } else { result['location'] = ImageMetadataBlockAttributesLocationFromJSON(json['location']); } } return result; } export function ImageMetadataBlockAttributesToJSON(json: any): ImageMetadataBlockAttributes { return ImageMetadataBlockAttributesToJSONTyped(json, false); } export function ImageMetadataBlockAttributesToJSONTyped(value?: ImageMetadataBlockAttributes | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'dimensions': DocumentMetadataBlockAttributesDimensionsToJSON(value['dimensions']), 'color': ImageMetadataBlockAttributesColorToJSON(value['color']), 'device': ImageMetadataBlockAttributesDeviceToJSON(value['device']), 'location': ImageMetadataBlockAttributesLocationToJSON(value['location']), }; }