flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
62 lines (61 loc) • 2.38 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.instanceOfCreatePageRequest = instanceOfCreatePageRequest;
exports.CreatePageRequestFromJSON = CreatePageRequestFromJSON;
exports.CreatePageRequestFromJSONTyped = CreatePageRequestFromJSONTyped;
exports.CreatePageRequestToJSON = CreatePageRequestToJSON;
exports.CreatePageRequestToJSONTyped = CreatePageRequestToJSONTyped;
const runtime_1 = require("../runtime");
const Cover_1 = require("./Cover");
const Parent_1 = require("./Parent");
const Icon_1 = require("./Icon");
const CreatePagePropertyValue_1 = require("./CreatePagePropertyValue");
/**
* Check if a given object implements the CreatePageRequest interface.
*/
function instanceOfCreatePageRequest(value) {
if (!('properties' in value) || value['properties'] === undefined)
return false;
return true;
}
function CreatePageRequestFromJSON(json) {
return CreatePageRequestFromJSONTyped(json, false);
}
function CreatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'parent': json['parent'] == null ? undefined : (0, Parent_1.ParentFromJSON)(json['parent']),
'icon': json['icon'] == null ? undefined : (0, Icon_1.IconFromJSON)(json['icon']),
'cover': json['cover'] == null ? undefined : (0, Cover_1.CoverFromJSON)(json['cover']),
'properties': ((0, runtime_1.mapValues)(json['properties'], CreatePagePropertyValue_1.CreatePagePropertyValueFromJSON)),
};
}
function CreatePageRequestToJSON(json) {
return CreatePageRequestToJSONTyped(json, false);
}
function CreatePageRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'parent': (0, Parent_1.ParentToJSON)(value['parent']),
'icon': (0, Icon_1.IconToJSON)(value['icon']),
'cover': (0, Cover_1.CoverToJSON)(value['cover']),
'properties': ((0, runtime_1.mapValues)(value['properties'], CreatePagePropertyValue_1.CreatePagePropertyValueToJSON)),
};
}