/* 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 { PresignedFile } from './PresignedFile'; import { PresignedFileFromJSON, PresignedFileFromJSONTyped, PresignedFileToJSON, PresignedFileToJSONTyped, } from './PresignedFile'; import type { VideoMetadataBlockAttributes } from './VideoMetadataBlockAttributes'; import { VideoMetadataBlockAttributesFromJSON, VideoMetadataBlockAttributesFromJSONTyped, VideoMetadataBlockAttributesToJSON, VideoMetadataBlockAttributesToJSONTyped, } from './VideoMetadataBlockAttributes'; /** * * @export * @interface VideoMetadataBlock */ export interface VideoMetadataBlock { /** * Whether the resource is infected with malware * @type {boolean} * @memberof VideoMetadataBlock */ 'infected': boolean; /** * * @type {string} * @memberof VideoMetadataBlock */ 'caption': string | null; /** * * @type {Array} * @memberof VideoMetadataBlock */ 'keywords'?: Array | null; /** * * @type {PresignedFile} * @memberof VideoMetadataBlock */ 'transcript': PresignedFile | null; /** * * @type {VideoMetadataBlockAttributes} * @memberof VideoMetadataBlock */ 'attributes': VideoMetadataBlockAttributes | null; } /** * Check if a given object implements the VideoMetadataBlock interface. */ export function instanceOfVideoMetadataBlock(value: object): value is VideoMetadataBlock { if (!('infected' in value) || value['infected'] === undefined) return false; if (!('caption' in value) || value['caption'] === undefined) return false; if (!('transcript' in value) || value['transcript'] === undefined) return false; if (!('attributes' in value) || value['attributes'] === undefined) return false; return true; } export function VideoMetadataBlockFromJSON(json: any): VideoMetadataBlock { return VideoMetadataBlockFromJSONTyped(json, false); } export function VideoMetadataBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): VideoMetadataBlock { if (json == null) { return json; } const result = { } as VideoMetadataBlock; if (json['infected'] !== undefined) { result['infected'] = json['infected']; } if (json['caption'] !== undefined) { if (json['caption'] === null) { result['caption'] = null; } else { result['caption'] = json['caption']; } } if (json['keywords'] !== undefined) { if (json['keywords'] === null) { result['keywords'] = null; } else { result['keywords'] = json['keywords']; } } if (json['transcript'] !== undefined) { if (json['transcript'] === null) { result['transcript'] = null; } else { result['transcript'] = PresignedFileFromJSON(json['transcript']); } } if (json['attributes'] !== undefined) { if (json['attributes'] === null) { result['attributes'] = null; } else { result['attributes'] = VideoMetadataBlockAttributesFromJSON(json['attributes']); } } return result; } export function VideoMetadataBlockToJSON(json: any): VideoMetadataBlock { return VideoMetadataBlockToJSONTyped(json, false); } export function VideoMetadataBlockToJSONTyped(value?: VideoMetadataBlock | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'infected': value['infected'], 'caption': value['caption'], 'keywords': value['keywords'], 'transcript': PresignedFileToJSON(value['transcript']), 'attributes': VideoMetadataBlockAttributesToJSON(value['attributes']), }; }