/* 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 { VideoMetadataBlockAttributesVideo } from './VideoMetadataBlockAttributesVideo'; import { VideoMetadataBlockAttributesVideoFromJSON, VideoMetadataBlockAttributesVideoFromJSONTyped, VideoMetadataBlockAttributesVideoToJSON, VideoMetadataBlockAttributesVideoToJSONTyped, } from './VideoMetadataBlockAttributesVideo'; import type { VideoMetadataBlockAttributesAudio } from './VideoMetadataBlockAttributesAudio'; import { VideoMetadataBlockAttributesAudioFromJSON, VideoMetadataBlockAttributesAudioFromJSONTyped, VideoMetadataBlockAttributesAudioToJSON, VideoMetadataBlockAttributesAudioToJSONTyped, } from './VideoMetadataBlockAttributesAudio'; import type { DocumentMetadataBlockAttributesDimensions } from './DocumentMetadataBlockAttributesDimensions'; import { DocumentMetadataBlockAttributesDimensionsFromJSON, DocumentMetadataBlockAttributesDimensionsFromJSONTyped, DocumentMetadataBlockAttributesDimensionsToJSON, DocumentMetadataBlockAttributesDimensionsToJSONTyped, } from './DocumentMetadataBlockAttributesDimensions'; /** * * @export * @interface VideoMetadataBlockAttributes */ export interface VideoMetadataBlockAttributes { /** * * @type {DocumentMetadataBlockAttributesDimensions} * @memberof VideoMetadataBlockAttributes */ 'dimensions'?: DocumentMetadataBlockAttributesDimensions | null; /** * * @type {ImageMetadataBlockAttributesColor} * @memberof VideoMetadataBlockAttributes */ 'color'?: ImageMetadataBlockAttributesColor | null; /** * * @type {ImageMetadataBlockAttributesDevice} * @memberof VideoMetadataBlockAttributes */ 'device'?: ImageMetadataBlockAttributesDevice | null; /** * * @type {ImageMetadataBlockAttributesLocation} * @memberof VideoMetadataBlockAttributes */ 'location'?: ImageMetadataBlockAttributesLocation | null; /** * * @type {VideoMetadataBlockAttributesVideo} * @memberof VideoMetadataBlockAttributes */ 'video'?: VideoMetadataBlockAttributesVideo | null; /** * * @type {VideoMetadataBlockAttributesAudio} * @memberof VideoMetadataBlockAttributes */ 'audio'?: VideoMetadataBlockAttributesAudio | null; } /** * Check if a given object implements the VideoMetadataBlockAttributes interface. */ export function instanceOfVideoMetadataBlockAttributes(value: object): value is VideoMetadataBlockAttributes { return true; } export function VideoMetadataBlockAttributesFromJSON(json: any): VideoMetadataBlockAttributes { return VideoMetadataBlockAttributesFromJSONTyped(json, false); } export function VideoMetadataBlockAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VideoMetadataBlockAttributes { if (json == null) { return json; } const result = { } as VideoMetadataBlockAttributes; 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']); } } if (json['video'] !== undefined) { if (json['video'] === null) { result['video'] = null; } else { result['video'] = VideoMetadataBlockAttributesVideoFromJSON(json['video']); } } if (json['audio'] !== undefined) { if (json['audio'] === null) { result['audio'] = null; } else { result['audio'] = VideoMetadataBlockAttributesAudioFromJSON(json['audio']); } } return result; } export function VideoMetadataBlockAttributesToJSON(json: any): VideoMetadataBlockAttributes { return VideoMetadataBlockAttributesToJSONTyped(json, false); } export function VideoMetadataBlockAttributesToJSONTyped(value?: VideoMetadataBlockAttributes | 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']), 'video': VideoMetadataBlockAttributesVideoToJSON(value['video']), 'audio': VideoMetadataBlockAttributesAudioToJSON(value['audio']), }; }