/* 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 VideoMetadataBlockAttributesVideo */ export interface VideoMetadataBlockAttributesVideo { /** * * @type {string} * @memberof VideoMetadataBlockAttributesVideo */ 'codec'?: string | null; /** * * @type {number} * @memberof VideoMetadataBlockAttributesVideo */ 'duration'?: number | null; /** * * @type {number} * @memberof VideoMetadataBlockAttributesVideo */ 'bitRate'?: number | null; /** * * @type {number} * @memberof VideoMetadataBlockAttributesVideo */ 'frameRate'?: number | null; } /** * Check if a given object implements the VideoMetadataBlockAttributesVideo interface. */ export function instanceOfVideoMetadataBlockAttributesVideo(value: object): value is VideoMetadataBlockAttributesVideo { return true; } export function VideoMetadataBlockAttributesVideoFromJSON(json: any): VideoMetadataBlockAttributesVideo { return VideoMetadataBlockAttributesVideoFromJSONTyped(json, false); } export function VideoMetadataBlockAttributesVideoFromJSONTyped(json: any, ignoreDiscriminator: boolean): VideoMetadataBlockAttributesVideo { if (json == null) { return json; } const result = { } as VideoMetadataBlockAttributesVideo; if (json['codec'] !== undefined) { if (json['codec'] === null) { result['codec'] = null; } else { result['codec'] = json['codec']; } } if (json['duration'] !== undefined) { if (json['duration'] === null) { result['duration'] = null; } else { result['duration'] = json['duration']; } } if (json['bitRate'] !== undefined) { if (json['bitRate'] === null) { result['bitRate'] = null; } else { result['bitRate'] = json['bitRate']; } } if (json['frameRate'] !== undefined) { if (json['frameRate'] === null) { result['frameRate'] = null; } else { result['frameRate'] = json['frameRate']; } } return result; } export function VideoMetadataBlockAttributesVideoToJSON(json: any): VideoMetadataBlockAttributesVideo { return VideoMetadataBlockAttributesVideoToJSONTyped(json, false); } export function VideoMetadataBlockAttributesVideoToJSONTyped(value?: VideoMetadataBlockAttributesVideo | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'codec': value['codec'], 'duration': value['duration'], 'bitRate': value['bitRate'], 'frameRate': value['frameRate'], }; }