flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
79 lines (78 loc) • 3.67 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.CreatePageResponseObjectEnum = void 0;
exports.instanceOfCreatePageResponse = instanceOfCreatePageResponse;
exports.CreatePageResponseFromJSON = CreatePageResponseFromJSON;
exports.CreatePageResponseFromJSONTyped = CreatePageResponseFromJSONTyped;
exports.CreatePageResponseToJSON = CreatePageResponseToJSON;
exports.CreatePageResponseToJSONTyped = CreatePageResponseToJSONTyped;
const runtime_1 = require("../runtime");
const CreatePageResponseUpdatedBy_1 = require("./CreatePageResponseUpdatedBy");
const CreatePageResponseCreatedBy_1 = require("./CreatePageResponseCreatedBy");
const PropertyValue_1 = require("./PropertyValue");
const CreatePageResponseParent_1 = require("./CreatePageResponseParent");
/**
* @export
*/
exports.CreatePageResponseObjectEnum = {
Page: 'page'
};
/**
* Check if a given object implements the CreatePageResponse interface.
*/
function instanceOfCreatePageResponse(value) {
return true;
}
function CreatePageResponseFromJSON(json) {
return CreatePageResponseFromJSONTyped(json, false);
}
function CreatePageResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'object': json['object'] == null ? undefined : json['object'],
'id': json['id'] == null ? undefined : json['id'],
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
'createdBy': json['createdBy'] == null ? undefined : (0, CreatePageResponseCreatedBy_1.CreatePageResponseCreatedByFromJSON)(json['createdBy']),
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
'updatedBy': json['updatedBy'] == null ? undefined : (0, CreatePageResponseUpdatedBy_1.CreatePageResponseUpdatedByFromJSON)(json['updatedBy']),
'archived': json['archived'] == null ? undefined : json['archived'],
'properties': json['properties'] == null ? undefined : ((0, runtime_1.mapValues)(json['properties'], PropertyValue_1.PropertyValueFromJSON)),
'parent': json['parent'] == null ? undefined : (0, CreatePageResponseParent_1.CreatePageResponseParentFromJSON)(json['parent']),
'url': json['url'] == null ? undefined : json['url'],
};
}
function CreatePageResponseToJSON(json) {
return CreatePageResponseToJSONTyped(json, false);
}
function CreatePageResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'object': value['object'],
'id': value['id'],
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
'createdBy': (0, CreatePageResponseCreatedBy_1.CreatePageResponseCreatedByToJSON)(value['createdBy']),
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
'updatedBy': (0, CreatePageResponseUpdatedBy_1.CreatePageResponseUpdatedByToJSON)(value['updatedBy']),
'archived': value['archived'],
'properties': value['properties'] == null ? undefined : ((0, runtime_1.mapValues)(value['properties'], PropertyValue_1.PropertyValueToJSON)),
'parent': (0, CreatePageResponseParent_1.CreatePageResponseParentToJSON)(value['parent']),
'url': value['url'],
};
}