/* 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 NotepadMetadataBlockPreview */ export interface NotepadMetadataBlockPreview { /** * HTML content of the notepad * @type {string} * @memberof NotepadMetadataBlockPreview */ 'content': string | null; /** * * @type {string} * @memberof NotepadMetadataBlockPreview */ 'modifiedAt': string; } /** * Check if a given object implements the NotepadMetadataBlockPreview interface. */ export function instanceOfNotepadMetadataBlockPreview(value: object): value is NotepadMetadataBlockPreview { if (!('content' in value) || value['content'] === undefined) return false; if (!('modifiedAt' in value) || value['modifiedAt'] === undefined) return false; return true; } export function NotepadMetadataBlockPreviewFromJSON(json: any): NotepadMetadataBlockPreview { return NotepadMetadataBlockPreviewFromJSONTyped(json, false); } export function NotepadMetadataBlockPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotepadMetadataBlockPreview { if (json == null) { return json; } const result = { } as NotepadMetadataBlockPreview; if (json['content'] !== undefined) { if (json['content'] === null) { result['content'] = null; } else { result['content'] = json['content']; } } if (json['modifiedAt'] !== undefined) { result['modifiedAt'] = json['modifiedAt']; } return result; } export function NotepadMetadataBlockPreviewToJSON(json: any): NotepadMetadataBlockPreview { return NotepadMetadataBlockPreviewToJSONTyped(json, false); } export function NotepadMetadataBlockPreviewToJSONTyped(value?: NotepadMetadataBlockPreview | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'modifiedAt': value['modifiedAt'], }; }