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.07 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.instanceOfPropertySchemaRelation = instanceOfPropertySchemaRelation;
exports.PropertySchemaRelationFromJSON = PropertySchemaRelationFromJSON;
exports.PropertySchemaRelationFromJSONTyped = PropertySchemaRelationFromJSONTyped;
exports.PropertySchemaRelationToJSON = PropertySchemaRelationToJSON;
exports.PropertySchemaRelationToJSONTyped = PropertySchemaRelationToJSONTyped;
const PropertySchemaRelationRelation_1 = require("./PropertySchemaRelationRelation");
/**
* Check if a given object implements the PropertySchemaRelation interface.
*/
function instanceOfPropertySchemaRelation(value) {
return true;
}
function PropertySchemaRelationFromJSON(json) {
return PropertySchemaRelationFromJSONTyped(json, false);
}
function PropertySchemaRelationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'name': json['name'] == null ? undefined : json['name'],
'type': json['type'] == null ? undefined : json['type'],
'relation': json['relation'] == null ? undefined : (0, PropertySchemaRelationRelation_1.PropertySchemaRelationRelationFromJSON)(json['relation']),
};
}
function PropertySchemaRelationToJSON(json) {
return PropertySchemaRelationToJSONTyped(json, false);
}
function PropertySchemaRelationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'name': value['name'],
'type': value['type'],
'relation': (0, PropertySchemaRelationRelation_1.PropertySchemaRelationRelationToJSON)(value['relation']),
};
}