flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
54 lines (53 loc) • 2.08 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.instanceOfPropertyValueRelation = instanceOfPropertyValueRelation;
exports.PropertyValueRelationFromJSON = PropertyValueRelationFromJSON;
exports.PropertyValueRelationFromJSONTyped = PropertyValueRelationFromJSONTyped;
exports.PropertyValueRelationToJSON = PropertyValueRelationToJSON;
exports.PropertyValueRelationToJSONTyped = PropertyValueRelationToJSONTyped;
const CreatePagePropertyValueRelationRelationInner_1 = require("./CreatePagePropertyValueRelationRelationInner");
/**
* Check if a given object implements the PropertyValueRelation interface.
*/
function instanceOfPropertyValueRelation(value) {
return true;
}
function PropertyValueRelationFromJSON(json) {
return PropertyValueRelationFromJSONTyped(json, false);
}
function PropertyValueRelationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'type': json['type'] == null ? undefined : json['type'],
'relation': json['relation'] == null ? undefined : (json['relation'].map(CreatePagePropertyValueRelationRelationInner_1.CreatePagePropertyValueRelationRelationInnerFromJSON)),
};
}
function PropertyValueRelationToJSON(json) {
return PropertyValueRelationToJSONTyped(json, false);
}
function PropertyValueRelationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': value['type'],
'relation': value['relation'] == null ? undefined : (value['relation'].map(CreatePagePropertyValueRelationRelationInner_1.CreatePagePropertyValueRelationRelationInnerToJSON)),
};
}