fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
57 lines • 2.22 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.instanceOfUserSearchSectionResult = instanceOfUserSearchSectionResult;
exports.UserSearchSectionResultFromJSON = UserSearchSectionResultFromJSON;
exports.UserSearchSectionResultFromJSONTyped = UserSearchSectionResultFromJSONTyped;
exports.UserSearchSectionResultToJSON = UserSearchSectionResultToJSON;
exports.UserSearchSectionResultToJSONTyped = UserSearchSectionResultToJSONTyped;
const UserSearchResult_1 = require("./UserSearchResult");
const UserSearchSection_1 = require("./UserSearchSection");
/**
* Check if a given object implements the UserSearchSectionResult interface.
*/
function instanceOfUserSearchSectionResult(value) {
if (!('section' in value) || value['section'] === undefined)
return false;
if (!('users' in value) || value['users'] === undefined)
return false;
return true;
}
function UserSearchSectionResultFromJSON(json) {
return UserSearchSectionResultFromJSONTyped(json, false);
}
function UserSearchSectionResultFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'section': (0, UserSearchSection_1.UserSearchSectionFromJSON)(json['section']),
'users': (json['users'].map(UserSearchResult_1.UserSearchResultFromJSON)),
};
}
function UserSearchSectionResultToJSON(json) {
return UserSearchSectionResultToJSONTyped(json, false);
}
function UserSearchSectionResultToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'section': (0, UserSearchSection_1.UserSearchSectionToJSON)(value['section']),
'users': (value['users'].map(UserSearchResult_1.UserSearchResultToJSON)),
};
}
//# sourceMappingURL=UserSearchSectionResult.js.map