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.27 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.AppendBlockChildrenResponseObjectEnum = void 0; exports.instanceOfAppendBlockChildrenResponse = instanceOfAppendBlockChildrenResponse; exports.AppendBlockChildrenResponseFromJSON = AppendBlockChildrenResponseFromJSON; exports.AppendBlockChildrenResponseFromJSONTyped = AppendBlockChildrenResponseFromJSONTyped; exports.AppendBlockChildrenResponseToJSON = AppendBlockChildrenResponseToJSON; exports.AppendBlockChildrenResponseToJSONTyped = AppendBlockChildrenResponseToJSONTyped; const Block_1 = require("./Block"); /** * @export */ exports.AppendBlockChildrenResponseObjectEnum = { List: 'list' }; /** * Check if a given object implements the AppendBlockChildrenResponse interface. */ function instanceOfAppendBlockChildrenResponse(value) { return true; } function AppendBlockChildrenResponseFromJSON(json) { return AppendBlockChildrenResponseFromJSONTyped(json, false); } function AppendBlockChildrenResponseFromJSONTyped(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 AppendBlockChildrenResponseToJSON(json) { return AppendBlockChildrenResponseToJSONTyped(json, false); } function AppendBlockChildrenResponseToJSONTyped(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'], }; }