/* 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 { NotepadMetadataBlockAttributes } from './NotepadMetadataBlockAttributes'; import { NotepadMetadataBlockAttributesFromJSON, NotepadMetadataBlockAttributesFromJSONTyped, NotepadMetadataBlockAttributesToJSON, NotepadMetadataBlockAttributesToJSONTyped, } from './NotepadMetadataBlockAttributes'; import type { VoicenoteMetadataBlockPreview } from './VoicenoteMetadataBlockPreview'; import { VoicenoteMetadataBlockPreviewFromJSON, VoicenoteMetadataBlockPreviewFromJSONTyped, VoicenoteMetadataBlockPreviewToJSON, VoicenoteMetadataBlockPreviewToJSONTyped, } from './VoicenoteMetadataBlockPreview'; /** * * @export * @interface VoicenoteMetadataBlock */ export interface VoicenoteMetadataBlock { /** * * @type {NotepadMetadataBlockAttributes} * @memberof VoicenoteMetadataBlock */ 'attributes': NotepadMetadataBlockAttributes; /** * * @type {VoicenoteMetadataBlockPreview} * @memberof VoicenoteMetadataBlock */ 'preview': VoicenoteMetadataBlockPreview | null; /** * * @type {boolean} * @memberof VoicenoteMetadataBlock */ 'exceedsSize'?: boolean | null; /** * * @type {string} * @memberof VoicenoteMetadataBlock */ 'caption': string | null; /** * * @type {Array} * @memberof VoicenoteMetadataBlock */ 'keywords'?: Array | null; } /** * Check if a given object implements the VoicenoteMetadataBlock interface. */ export function instanceOfVoicenoteMetadataBlock(value: object): value is VoicenoteMetadataBlock { if (!('attributes' in value) || value['attributes'] === undefined) return false; if (!('preview' in value) || value['preview'] === undefined) return false; if (!('caption' in value) || value['caption'] === undefined) return false; return true; } export function VoicenoteMetadataBlockFromJSON(json: any): VoicenoteMetadataBlock { return VoicenoteMetadataBlockFromJSONTyped(json, false); } export function VoicenoteMetadataBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): VoicenoteMetadataBlock { if (json == null) { return json; } const result = { } as VoicenoteMetadataBlock; if (json['attributes'] !== undefined) { result['attributes'] = NotepadMetadataBlockAttributesFromJSON(json['attributes']); } if (json['preview'] !== undefined) { if (json['preview'] === null) { result['preview'] = null; } else { result['preview'] = VoicenoteMetadataBlockPreviewFromJSON(json['preview']); } } if (json['exceedsSize'] !== undefined) { if (json['exceedsSize'] === null) { result['exceedsSize'] = null; } else { result['exceedsSize'] = json['exceedsSize']; } } 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']; } } return result; } export function VoicenoteMetadataBlockToJSON(json: any): VoicenoteMetadataBlock { return VoicenoteMetadataBlockToJSONTyped(json, false); } export function VoicenoteMetadataBlockToJSONTyped(value?: VoicenoteMetadataBlock | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attributes': NotepadMetadataBlockAttributesToJSON(value['attributes']), 'preview': VoicenoteMetadataBlockPreviewToJSON(value['preview']), 'exceedsSize': value['exceedsSize'], 'caption': value['caption'], 'keywords': value['keywords'], }; }