flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
52 lines (51 loc) • 1.69 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.instanceOfSearchResult = instanceOfSearchResult;
exports.SearchResultFromJSON = SearchResultFromJSON;
exports.SearchResultFromJSONTyped = SearchResultFromJSONTyped;
exports.SearchResultToJSON = SearchResultToJSON;
exports.SearchResultToJSONTyped = SearchResultToJSONTyped;
const SearchResultDataInner_1 = require("./SearchResultDataInner");
/**
* Check if a given object implements the SearchResult interface.
*/
function instanceOfSearchResult(value) {
return true;
}
function SearchResultFromJSON(json) {
return SearchResultFromJSONTyped(json, false);
}
function SearchResultFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'success': json['success'] == null ? undefined : json['success'],
'data': json['data'] == null ? undefined : (json['data'].map(SearchResultDataInner_1.SearchResultDataInnerFromJSON)),
};
}
function SearchResultToJSON(json) {
return SearchResultToJSONTyped(json, false);
}
function SearchResultToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'success': value['success'],
'data': value['data'] == null ? undefined : (value['data'].map(SearchResultDataInner_1.SearchResultDataInnerToJSON)),
};
}