/* 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 { FileCreationMetadataTranscript } from './FileCreationMetadataTranscript'; import { FileCreationMetadataTranscriptFromJSON, FileCreationMetadataTranscriptFromJSONTyped, FileCreationMetadataTranscriptToJSON, FileCreationMetadataTranscriptToJSONTyped, } from './FileCreationMetadataTranscript'; import type { FileCreationMetadataAttributes } from './FileCreationMetadataAttributes'; import { FileCreationMetadataAttributesFromJSON, FileCreationMetadataAttributesFromJSONTyped, FileCreationMetadataAttributesToJSON, FileCreationMetadataAttributesToJSONTyped, } from './FileCreationMetadataAttributes'; /** * * @export * @interface FileCreationMetadata */ export interface FileCreationMetadata { /** * * @type {FileCreationMetadataAttributes} * @memberof FileCreationMetadata */ 'attributes'?: FileCreationMetadataAttributes; /** * * @type {FileCreationMetadataTranscript} * @memberof FileCreationMetadata */ 'transcript'?: FileCreationMetadataTranscript | null; /** * Whether this item is the audio part of a voice note * @type {boolean} * @memberof FileCreationMetadata */ 'voiceNote'?: boolean | null; } /** * Check if a given object implements the FileCreationMetadata interface. */ export function instanceOfFileCreationMetadata(value: object): value is FileCreationMetadata { return true; } export function FileCreationMetadataFromJSON(json: any): FileCreationMetadata { return FileCreationMetadataFromJSONTyped(json, false); } export function FileCreationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileCreationMetadata { if (json == null) { return json; } const result = { } as FileCreationMetadata; if (json['attributes'] !== undefined) { result['attributes'] = FileCreationMetadataAttributesFromJSON(json['attributes']); } if (json['transcript'] !== undefined) { if (json['transcript'] === null) { result['transcript'] = null; } else { result['transcript'] = FileCreationMetadataTranscriptFromJSON(json['transcript']); } } if (json['voiceNote'] !== undefined) { if (json['voiceNote'] === null) { result['voiceNote'] = null; } else { result['voiceNote'] = json['voiceNote']; } } return result; } export function FileCreationMetadataToJSON(json: any): FileCreationMetadata { return FileCreationMetadataToJSONTyped(json, false); } export function FileCreationMetadataToJSONTyped(value?: FileCreationMetadata | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attributes': FileCreationMetadataAttributesToJSON(value['attributes']), 'transcript': FileCreationMetadataTranscriptToJSON(value['transcript']), 'voiceNote': value['voiceNote'], }; }