flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
51 lines (50 loc) • 1.57 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.instanceOfBlockDataFile = instanceOfBlockDataFile;
exports.BlockDataFileFromJSON = BlockDataFileFromJSON;
exports.BlockDataFileFromJSONTyped = BlockDataFileFromJSONTyped;
exports.BlockDataFileToJSON = BlockDataFileToJSON;
exports.BlockDataFileToJSONTyped = BlockDataFileToJSONTyped;
/**
* Check if a given object implements the BlockDataFile interface.
*/
function instanceOfBlockDataFile(value) {
return true;
}
function BlockDataFileFromJSON(json) {
return BlockDataFileFromJSONTyped(json, false);
}
function BlockDataFileFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'url': json['url'] == null ? undefined : json['url'],
'expiry_time': json['expiry_time'] == null ? undefined : (new Date(json['expiry_time'])),
};
}
function BlockDataFileToJSON(json) {
return BlockDataFileToJSONTyped(json, false);
}
function BlockDataFileToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'url': value['url'],
'expiry_time': value['expiry_time'] == null ? undefined : ((value['expiry_time']).toISOString()),
};
}