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.44 kB
JavaScript
;
/* 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.ParentFromJSON = ParentFromJSON;
exports.ParentFromJSONTyped = ParentFromJSONTyped;
exports.ParentToJSON = ParentToJSON;
exports.ParentToJSONTyped = ParentToJSONTyped;
const ParentBlockId_1 = require("./ParentBlockId");
const ParentDatabaseId_1 = require("./ParentDatabaseId");
const ParentPageId_1 = require("./ParentPageId");
const ParentSpaceId_1 = require("./ParentSpaceId");
function ParentFromJSON(json) {
return ParentFromJSONTyped(json, false);
}
function ParentFromJSONTyped(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 ParentToJSON(json) {
return ParentToJSONTyped(json, false);
}
function ParentToJSONTyped(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 {};
}