flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
63 lines (62 loc) • 2.13 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.V1SearchResponseObjectEnum = void 0;
exports.instanceOfV1SearchResponse = instanceOfV1SearchResponse;
exports.V1SearchResponseFromJSON = V1SearchResponseFromJSON;
exports.V1SearchResponseFromJSONTyped = V1SearchResponseFromJSONTyped;
exports.V1SearchResponseToJSON = V1SearchResponseToJSON;
exports.V1SearchResponseToJSONTyped = V1SearchResponseToJSONTyped;
const V1SearchPageResult_1 = require("./V1SearchPageResult");
/**
* @export
*/
exports.V1SearchResponseObjectEnum = {
List: 'list'
};
/**
* Check if a given object implements the V1SearchResponse interface.
*/
function instanceOfV1SearchResponse(value) {
return true;
}
function V1SearchResponseFromJSON(json) {
return V1SearchResponseFromJSONTyped(json, false);
}
function V1SearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'object': json['object'] == null ? undefined : json['object'],
'results': json['results'] == null ? undefined : (json['results'].map(V1SearchPageResult_1.V1SearchPageResultFromJSON)),
'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'],
'has_more': json['has_more'] == null ? undefined : json['has_more'],
};
}
function V1SearchResponseToJSON(json) {
return V1SearchResponseToJSONTyped(json, false);
}
function V1SearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'object': value['object'],
'results': value['results'] == null ? undefined : (value['results'].map(V1SearchPageResult_1.V1SearchPageResultToJSON)),
'next_cursor': value['next_cursor'],
'has_more': value['has_more'],
};
}