flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
58 lines (57 loc) • 1.88 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.instanceOfPropertyValueTitle = instanceOfPropertyValueTitle;
exports.PropertyValueTitleFromJSON = PropertyValueTitleFromJSON;
exports.PropertyValueTitleFromJSONTyped = PropertyValueTitleFromJSONTyped;
exports.PropertyValueTitleToJSON = PropertyValueTitleToJSON;
exports.PropertyValueTitleToJSONTyped = PropertyValueTitleToJSONTyped;
const RichTextItem_1 = require("./RichTextItem");
/**
* Check if a given object implements the PropertyValueTitle interface.
*/
function instanceOfPropertyValueTitle(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('title' in value) || value['title'] === undefined)
return false;
return true;
}
function PropertyValueTitleFromJSON(json) {
return PropertyValueTitleFromJSONTyped(json, false);
}
function PropertyValueTitleFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'type': json['type'],
'title': (json['title'].map(RichTextItem_1.RichTextItemFromJSON)),
};
}
function PropertyValueTitleToJSON(json) {
return PropertyValueTitleToJSONTyped(json, false);
}
function PropertyValueTitleToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': value['type'],
'title': (value['title'].map(RichTextItem_1.RichTextItemToJSON)),
};
}