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.59 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.instanceOfIconFileDetail = instanceOfIconFileDetail;
exports.IconFileDetailFromJSON = IconFileDetailFromJSON;
exports.IconFileDetailFromJSONTyped = IconFileDetailFromJSONTyped;
exports.IconFileDetailToJSON = IconFileDetailToJSON;
exports.IconFileDetailToJSONTyped = IconFileDetailToJSONTyped;
/**
* Check if a given object implements the IconFileDetail interface.
*/
function instanceOfIconFileDetail(value) {
return true;
}
function IconFileDetailFromJSON(json) {
return IconFileDetailFromJSONTyped(json, false);
}
function IconFileDetailFromJSONTyped(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 IconFileDetailToJSON(json) {
return IconFileDetailToJSONTyped(json, false);
}
function IconFileDetailToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'url': value['url'],
'expiry_time': value['expiry_time'] == null ? undefined : ((value['expiry_time']).toISOString()),
};
}