flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
56 lines (55 loc) • 2.23 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.instanceOfCreatePagePropertyValueRelation = instanceOfCreatePagePropertyValueRelation;
exports.CreatePagePropertyValueRelationFromJSON = CreatePagePropertyValueRelationFromJSON;
exports.CreatePagePropertyValueRelationFromJSONTyped = CreatePagePropertyValueRelationFromJSONTyped;
exports.CreatePagePropertyValueRelationToJSON = CreatePagePropertyValueRelationToJSON;
exports.CreatePagePropertyValueRelationToJSONTyped = CreatePagePropertyValueRelationToJSONTyped;
const CreatePagePropertyValueRelationRelationInner_1 = require("./CreatePagePropertyValueRelationRelationInner");
/**
* Check if a given object implements the CreatePagePropertyValueRelation interface.
*/
function instanceOfCreatePagePropertyValueRelation(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('relation' in value) || value['relation'] === undefined)
return false;
return true;
}
function CreatePagePropertyValueRelationFromJSON(json) {
return CreatePagePropertyValueRelationFromJSONTyped(json, false);
}
function CreatePagePropertyValueRelationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'],
'relation': (json['relation'].map(CreatePagePropertyValueRelationRelationInner_1.CreatePagePropertyValueRelationRelationInnerFromJSON)),
};
}
function CreatePagePropertyValueRelationToJSON(json) {
return CreatePagePropertyValueRelationToJSONTyped(json, false);
}
function CreatePagePropertyValueRelationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'relation': (value['relation'].map(CreatePagePropertyValueRelationRelationInner_1.CreatePagePropertyValueRelationRelationInnerToJSON)),
};
}