UNPKG

flowus-api-sdk

Version:

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

74 lines (73 loc) 2.9 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.RichTextItemTypeEnum = void 0; exports.instanceOfRichTextItem = instanceOfRichTextItem; exports.RichTextItemFromJSON = RichTextItemFromJSON; exports.RichTextItemFromJSONTyped = RichTextItemFromJSONTyped; exports.RichTextItemToJSON = RichTextItemToJSON; exports.RichTextItemToJSONTyped = RichTextItemToJSONTyped; const RichTextItemAnnotations_1 = require("./RichTextItemAnnotations"); const RichTextItemEquation_1 = require("./RichTextItemEquation"); const RichTextItemText_1 = require("./RichTextItemText"); const RichTextItemMention_1 = require("./RichTextItemMention"); /** * @export */ exports.RichTextItemTypeEnum = { Text: 'text', Mention: 'mention', Equation: 'equation' }; /** * Check if a given object implements the RichTextItem interface. */ function instanceOfRichTextItem(value) { return true; } function RichTextItemFromJSON(json) { return RichTextItemFromJSONTyped(json, false); } function RichTextItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'] == null ? undefined : (0, RichTextItemText_1.RichTextItemTextFromJSON)(json['text']), 'mention': json['mention'] == null ? undefined : (0, RichTextItemMention_1.RichTextItemMentionFromJSON)(json['mention']), 'equation': json['equation'] == null ? undefined : (0, RichTextItemEquation_1.RichTextItemEquationFromJSON)(json['equation']), 'annotations': json['annotations'] == null ? undefined : (0, RichTextItemAnnotations_1.RichTextItemAnnotationsFromJSON)(json['annotations']), 'plain_text': json['plain_text'] == null ? undefined : json['plain_text'], 'href': json['href'] == null ? undefined : json['href'], }; } function RichTextItemToJSON(json) { return RichTextItemToJSONTyped(json, false); } function RichTextItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'text': (0, RichTextItemText_1.RichTextItemTextToJSON)(value['text']), 'mention': (0, RichTextItemMention_1.RichTextItemMentionToJSON)(value['mention']), 'equation': (0, RichTextItemEquation_1.RichTextItemEquationToJSON)(value['equation']), 'annotations': (0, RichTextItemAnnotations_1.RichTextItemAnnotationsToJSON)(value['annotations']), 'plain_text': value['plain_text'], 'href': value['href'], }; }