UNPKG

flowus-api-sdk

Version:

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

65 lines (64 loc) 1.96 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.IconFromJSON = IconFromJSON; exports.IconFromJSONTyped = IconFromJSONTyped; exports.IconToJSON = IconToJSON; exports.IconToJSONTyped = IconToJSONTyped; const IconEmoji_1 = require("./IconEmoji"); const IconExternal_1 = require("./IconExternal"); const IconFile_1 = require("./IconFile"); function IconFromJSON(json) { return IconFromJSONTyped(json, false); } function IconFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if ((0, IconEmoji_1.instanceOfIconEmoji)(json)) { return (0, IconEmoji_1.IconEmojiFromJSONTyped)(json, true); } if ((0, IconExternal_1.instanceOfIconExternal)(json)) { return (0, IconExternal_1.IconExternalFromJSONTyped)(json, true); } if ((0, IconFile_1.instanceOfIconFile)(json)) { return (0, IconFile_1.IconFileFromJSONTyped)(json, true); } return {}; } function IconToJSON(json) { return IconToJSONTyped(json, false); } function IconToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if ((0, IconEmoji_1.instanceOfIconEmoji)(value)) { return (0, IconEmoji_1.IconEmojiToJSON)(value); } if ((0, IconExternal_1.instanceOfIconExternal)(value)) { return (0, IconExternal_1.IconExternalToJSON)(value); } if ((0, IconFile_1.instanceOfIconFile)(value)) { return (0, IconFile_1.IconFileToJSON)(value); } return {}; }