UNPKG

flowus-api-sdk

Version:

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

63 lines (62 loc) 2.21 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.GetBlockChildrenResponseObjectEnum = void 0; exports.instanceOfGetBlockChildrenResponse = instanceOfGetBlockChildrenResponse; exports.GetBlockChildrenResponseFromJSON = GetBlockChildrenResponseFromJSON; exports.GetBlockChildrenResponseFromJSONTyped = GetBlockChildrenResponseFromJSONTyped; exports.GetBlockChildrenResponseToJSON = GetBlockChildrenResponseToJSON; exports.GetBlockChildrenResponseToJSONTyped = GetBlockChildrenResponseToJSONTyped; const Block_1 = require("./Block"); /** * @export */ exports.GetBlockChildrenResponseObjectEnum = { List: 'list' }; /** * Check if a given object implements the GetBlockChildrenResponse interface. */ function instanceOfGetBlockChildrenResponse(value) { return true; } function GetBlockChildrenResponseFromJSON(json) { return GetBlockChildrenResponseFromJSONTyped(json, false); } function GetBlockChildrenResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'object': json['object'] == null ? undefined : json['object'], 'results': json['results'] == null ? undefined : (json['results'].map(Block_1.BlockFromJSON)), 'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'], 'has_more': json['has_more'] == null ? undefined : json['has_more'], }; } function GetBlockChildrenResponseToJSON(json) { return GetBlockChildrenResponseToJSONTyped(json, false); } function GetBlockChildrenResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'object': value['object'], 'results': value['results'] == null ? undefined : (value['results'].map(Block_1.BlockToJSON)), 'next_cursor': value['next_cursor'], 'has_more': value['has_more'], }; }