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) • 2.14 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.instanceOfCreatePagePropertyValueDate = instanceOfCreatePagePropertyValueDate;
exports.CreatePagePropertyValueDateFromJSON = CreatePagePropertyValueDateFromJSON;
exports.CreatePagePropertyValueDateFromJSONTyped = CreatePagePropertyValueDateFromJSONTyped;
exports.CreatePagePropertyValueDateToJSON = CreatePagePropertyValueDateToJSON;
exports.CreatePagePropertyValueDateToJSONTyped = CreatePagePropertyValueDateToJSONTyped;
const CreatePagePropertyValueDateDate_1 = require("./CreatePagePropertyValueDateDate");
/**
* Check if a given object implements the CreatePagePropertyValueDate interface.
*/
function instanceOfCreatePagePropertyValueDate(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('date' in value) || value['date'] === undefined)
return false;
return true;
}
function CreatePagePropertyValueDateFromJSON(json) {
return CreatePagePropertyValueDateFromJSONTyped(json, false);
}
function CreatePagePropertyValueDateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'type': json['type'],
'date': (0, CreatePagePropertyValueDateDate_1.CreatePagePropertyValueDateDateFromJSON)(json['date']),
};
}
function CreatePagePropertyValueDateToJSON(json) {
return CreatePagePropertyValueDateToJSONTyped(json, false);
}
function CreatePagePropertyValueDateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': value['type'],
'date': (0, CreatePagePropertyValueDateDate_1.CreatePagePropertyValueDateDateToJSON)(value['date']),
};
}