UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

73 lines 2.47 kB
"use strict"; /* 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.UserSearchResultTypeEnum = void 0; exports.instanceOfUserSearchResult = instanceOfUserSearchResult; exports.UserSearchResultFromJSON = UserSearchResultFromJSON; exports.UserSearchResultFromJSONTyped = UserSearchResultFromJSONTyped; exports.UserSearchResultToJSON = UserSearchResultToJSON; exports.UserSearchResultToJSONTyped = UserSearchResultToJSONTyped; /** * @export * @enum {string} */ var UserSearchResultTypeEnum; (function (UserSearchResultTypeEnum) { UserSearchResultTypeEnum["user"] = "user"; UserSearchResultTypeEnum["sso"] = "sso"; })(UserSearchResultTypeEnum || (exports.UserSearchResultTypeEnum = UserSearchResultTypeEnum = {})); /** * Check if a given object implements the UserSearchResult interface. */ function instanceOfUserSearchResult(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } function UserSearchResultFromJSON(json) { return UserSearchResultFromJSONTyped(json, false); } function UserSearchResultFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'avatarSrc': json['avatarSrc'] == null ? undefined : json['avatarSrc'], 'type': json['type'], }; } function UserSearchResultToJSON(json) { return UserSearchResultToJSONTyped(json, false); } function UserSearchResultToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'displayName': value['displayName'], 'avatarSrc': value['avatarSrc'], 'type': value['type'], }; } //# sourceMappingURL=UserSearchResult.js.map