/* 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 VideoMetadataBlockAttributesAudio */ export interface VideoMetadataBlockAttributesAudio { /** * * @type {string} * @memberof VideoMetadataBlockAttributesAudio */ 'codec'?: string | null; /** * * @type {number} * @memberof VideoMetadataBlockAttributesAudio */ 'duration'?: number | null; /** * * @type {number} * @memberof VideoMetadataBlockAttributesAudio */ 'bitRate'?: number | null; /** * * @type {number} * @memberof VideoMetadataBlockAttributesAudio */ 'sampleRate'?: number | null; /** * * @type {string} * @memberof VideoMetadataBlockAttributesAudio */ 'channels'?: string | null; } /** * Check if a given object implements the VideoMetadataBlockAttributesAudio interface. */ export function instanceOfVideoMetadataBlockAttributesAudio(value: object): value is VideoMetadataBlockAttributesAudio { return true; } export function VideoMetadataBlockAttributesAudioFromJSON(json: any): VideoMetadataBlockAttributesAudio { return VideoMetadataBlockAttributesAudioFromJSONTyped(json, false); } export function VideoMetadataBlockAttributesAudioFromJSONTyped(json: any, ignoreDiscriminator: boolean): VideoMetadataBlockAttributesAudio { if (json == null) { return json; } const result = { } as VideoMetadataBlockAttributesAudio; 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['sampleRate'] !== undefined) { if (json['sampleRate'] === null) { result['sampleRate'] = null; } else { result['sampleRate'] = json['sampleRate']; } } if (json['channels'] !== undefined) { if (json['channels'] === null) { result['channels'] = null; } else { result['channels'] = json['channels']; } } return result; } export function VideoMetadataBlockAttributesAudioToJSON(json: any): VideoMetadataBlockAttributesAudio { return VideoMetadataBlockAttributesAudioToJSONTyped(json, false); } export function VideoMetadataBlockAttributesAudioToJSONTyped(value?: VideoMetadataBlockAttributesAudio | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'codec': value['codec'], 'duration': value['duration'], 'bitRate': value['bitRate'], 'sampleRate': value['sampleRate'], 'channels': value['channels'], }; }