UNPKG

flowus-api-sdk

Version:

Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks

56 lines (55 loc) 2.05 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * FlowUs API * FlowUs Developer API * * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCreatePagePropertyValueRichText = instanceOfCreatePagePropertyValueRichText; exports.CreatePagePropertyValueRichTextFromJSON = CreatePagePropertyValueRichTextFromJSON; exports.CreatePagePropertyValueRichTextFromJSONTyped = CreatePagePropertyValueRichTextFromJSONTyped; exports.CreatePagePropertyValueRichTextToJSON = CreatePagePropertyValueRichTextToJSON; exports.CreatePagePropertyValueRichTextToJSONTyped = CreatePagePropertyValueRichTextToJSONTyped; const RichTextItem_1 = require("./RichTextItem"); /** * Check if a given object implements the CreatePagePropertyValueRichText interface. */ function instanceOfCreatePagePropertyValueRichText(value) { if (!('type' in value) || value['type'] === undefined) return false; if (!('rich_text' in value) || value['rich_text'] === undefined) return false; return true; } function CreatePagePropertyValueRichTextFromJSON(json) { return CreatePagePropertyValueRichTextFromJSONTyped(json, false); } function CreatePagePropertyValueRichTextFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'], 'rich_text': (json['rich_text'].map(RichTextItem_1.RichTextItemFromJSON)), }; } function CreatePagePropertyValueRichTextToJSON(json) { return CreatePagePropertyValueRichTextToJSONTyped(json, false); } function CreatePagePropertyValueRichTextToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'rich_text': (value['rich_text'].map(RichTextItem_1.RichTextItemToJSON)), }; }