/* 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 { NotepadMetadataBlockPreview } from './NotepadMetadataBlockPreview'; import { NotepadMetadataBlockPreviewFromJSON, NotepadMetadataBlockPreviewFromJSONTyped, NotepadMetadataBlockPreviewToJSON, NotepadMetadataBlockPreviewToJSONTyped, } from './NotepadMetadataBlockPreview'; import type { NotepadMetadataBlockAttributes } from './NotepadMetadataBlockAttributes'; import { NotepadMetadataBlockAttributesFromJSON, NotepadMetadataBlockAttributesFromJSONTyped, NotepadMetadataBlockAttributesToJSON, NotepadMetadataBlockAttributesToJSONTyped, } from './NotepadMetadataBlockAttributes'; /** * * @export * @interface NotepadMetadataBlock */ export interface NotepadMetadataBlock { /** * * @type {NotepadMetadataBlockAttributes} * @memberof NotepadMetadataBlock */ 'attributes': NotepadMetadataBlockAttributes; /** * * @type {NotepadMetadataBlockPreview} * @memberof NotepadMetadataBlock */ 'preview': NotepadMetadataBlockPreview | null; /** * * @type {boolean} * @memberof NotepadMetadataBlock */ 'exceedsSize'?: boolean | null; /** * * @type {string} * @memberof NotepadMetadataBlock */ 'caption': string | null; /** * * @type {Array} * @memberof NotepadMetadataBlock */ 'keywords'?: Array | null; } /** * Check if a given object implements the NotepadMetadataBlock interface. */ export function instanceOfNotepadMetadataBlock(value: object): value is NotepadMetadataBlock { 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 NotepadMetadataBlockFromJSON(json: any): NotepadMetadataBlock { return NotepadMetadataBlockFromJSONTyped(json, false); } export function NotepadMetadataBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotepadMetadataBlock { if (json == null) { return json; } const result = { } as NotepadMetadataBlock; if (json['attributes'] !== undefined) { result['attributes'] = NotepadMetadataBlockAttributesFromJSON(json['attributes']); } if (json['preview'] !== undefined) { if (json['preview'] === null) { result['preview'] = null; } else { result['preview'] = NotepadMetadataBlockPreviewFromJSON(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 NotepadMetadataBlockToJSON(json: any): NotepadMetadataBlock { return NotepadMetadataBlockToJSONTyped(json, false); } export function NotepadMetadataBlockToJSONTyped(value?: NotepadMetadataBlock | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attributes': NotepadMetadataBlockAttributesToJSON(value['attributes']), 'preview': NotepadMetadataBlockPreviewToJSON(value['preview']), 'exceedsSize': value['exceedsSize'], 'caption': value['caption'], 'keywords': value['keywords'], }; }