UNPKG

flowus-api-sdk

Version:

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

72 lines (71 loc) 2.69 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.V1SearchPageResultParentFromJSON = V1SearchPageResultParentFromJSON; exports.V1SearchPageResultParentFromJSONTyped = V1SearchPageResultParentFromJSONTyped; exports.V1SearchPageResultParentToJSON = V1SearchPageResultParentToJSON; exports.V1SearchPageResultParentToJSONTyped = V1SearchPageResultParentToJSONTyped; const ParentBlockId_1 = require("./ParentBlockId"); const ParentDatabaseId_1 = require("./ParentDatabaseId"); const ParentPageId_1 = require("./ParentPageId"); const ParentSpaceId_1 = require("./ParentSpaceId"); function V1SearchPageResultParentFromJSON(json) { return V1SearchPageResultParentFromJSONTyped(json, false); } function V1SearchPageResultParentFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if ((0, ParentBlockId_1.instanceOfParentBlockId)(json)) { return (0, ParentBlockId_1.ParentBlockIdFromJSONTyped)(json, true); } if ((0, ParentDatabaseId_1.instanceOfParentDatabaseId)(json)) { return (0, ParentDatabaseId_1.ParentDatabaseIdFromJSONTyped)(json, true); } if ((0, ParentPageId_1.instanceOfParentPageId)(json)) { return (0, ParentPageId_1.ParentPageIdFromJSONTyped)(json, true); } if ((0, ParentSpaceId_1.instanceOfParentSpaceId)(json)) { return (0, ParentSpaceId_1.ParentSpaceIdFromJSONTyped)(json, true); } return {}; } function V1SearchPageResultParentToJSON(json) { return V1SearchPageResultParentToJSONTyped(json, false); } function V1SearchPageResultParentToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if ((0, ParentBlockId_1.instanceOfParentBlockId)(value)) { return (0, ParentBlockId_1.ParentBlockIdToJSON)(value); } if ((0, ParentDatabaseId_1.instanceOfParentDatabaseId)(value)) { return (0, ParentDatabaseId_1.ParentDatabaseIdToJSON)(value); } if ((0, ParentPageId_1.instanceOfParentPageId)(value)) { return (0, ParentPageId_1.ParentPageIdToJSON)(value); } if ((0, ParentSpaceId_1.instanceOfParentSpaceId)(value)) { return (0, ParentSpaceId_1.ParentSpaceIdToJSON)(value); } return {}; }