fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
62 lines • 2.42 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* fastcomments
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.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.instanceOfSearchUsersResult = instanceOfSearchUsersResult;
exports.SearchUsersResultFromJSON = SearchUsersResultFromJSON;
exports.SearchUsersResultFromJSONTyped = SearchUsersResultFromJSONTyped;
exports.SearchUsersResultToJSON = SearchUsersResultToJSON;
exports.SearchUsersResultToJSONTyped = SearchUsersResultToJSONTyped;
const UserSearchResult_1 = require("./UserSearchResult");
const APIStatus_1 = require("./APIStatus");
const UserSearchSectionResult_1 = require("./UserSearchSectionResult");
/**
* Check if a given object implements the SearchUsersResult interface.
*/
function instanceOfSearchUsersResult(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
if (!('sections' in value) || value['sections'] === undefined)
return false;
if (!('users' in value) || value['users'] === undefined)
return false;
return true;
}
function SearchUsersResultFromJSON(json) {
return SearchUsersResultFromJSONTyped(json, false);
}
function SearchUsersResultFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']),
'sections': (json['sections'].map(UserSearchSectionResult_1.UserSearchSectionResultFromJSON)),
'users': (json['users'].map(UserSearchResult_1.UserSearchResultFromJSON)),
};
}
function SearchUsersResultToJSON(json) {
return SearchUsersResultToJSONTyped(json, false);
}
function SearchUsersResultToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': (0, APIStatus_1.APIStatusToJSON)(value['status']),
'sections': (value['sections'].map(UserSearchSectionResult_1.UserSearchSectionResultToJSON)),
'users': (value['users'].map(UserSearchResult_1.UserSearchResultToJSON)),
};
}
//# sourceMappingURL=SearchUsersResult.js.map