UNPKG

flowus-api-sdk

Version:

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

59 lines (58 loc) 2.23 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.instanceOfUpdatePageRequest = instanceOfUpdatePageRequest; exports.UpdatePageRequestFromJSON = UpdatePageRequestFromJSON; exports.UpdatePageRequestFromJSONTyped = UpdatePageRequestFromJSONTyped; exports.UpdatePageRequestToJSON = UpdatePageRequestToJSON; exports.UpdatePageRequestToJSONTyped = UpdatePageRequestToJSONTyped; const runtime_1 = require("../runtime"); const Cover_1 = require("./Cover"); const PropertyValue_1 = require("./PropertyValue"); const Icon_1 = require("./Icon"); /** * Check if a given object implements the UpdatePageRequest interface. */ function instanceOfUpdatePageRequest(value) { return true; } function UpdatePageRequestFromJSON(json) { return UpdatePageRequestFromJSONTyped(json, false); } function UpdatePageRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'properties': json['properties'] == null ? undefined : ((0, runtime_1.mapValues)(json['properties'], PropertyValue_1.PropertyValueFromJSON)), 'icon': json['icon'] == null ? undefined : (0, Icon_1.IconFromJSON)(json['icon']), 'cover': json['cover'] == null ? undefined : (0, Cover_1.CoverFromJSON)(json['cover']), 'archived': json['archived'] == null ? undefined : json['archived'], }; } function UpdatePageRequestToJSON(json) { return UpdatePageRequestToJSONTyped(json, false); } function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'properties': value['properties'] == null ? undefined : ((0, runtime_1.mapValues)(value['properties'], PropertyValue_1.PropertyValueToJSON)), 'icon': (0, Icon_1.IconToJSON)(value['icon']), 'cover': (0, Cover_1.CoverToJSON)(value['cover']), 'archived': value['archived'], }; }