UNPKG

fastcomments-sdk

Version:

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

57 lines 2.15 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.instanceOfAPIGetUserBadgeResponse = instanceOfAPIGetUserBadgeResponse; exports.APIGetUserBadgeResponseFromJSON = APIGetUserBadgeResponseFromJSON; exports.APIGetUserBadgeResponseFromJSONTyped = APIGetUserBadgeResponseFromJSONTyped; exports.APIGetUserBadgeResponseToJSON = APIGetUserBadgeResponseToJSON; exports.APIGetUserBadgeResponseToJSONTyped = APIGetUserBadgeResponseToJSONTyped; const UserBadge_1 = require("./UserBadge"); const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the APIGetUserBadgeResponse interface. */ function instanceOfAPIGetUserBadgeResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; if (!('userBadge' in value) || value['userBadge'] === undefined) return false; return true; } function APIGetUserBadgeResponseFromJSON(json) { return APIGetUserBadgeResponseFromJSONTyped(json, false); } function APIGetUserBadgeResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), 'userBadge': (0, UserBadge_1.UserBadgeFromJSON)(json['userBadge']), }; } function APIGetUserBadgeResponseToJSON(json) { return APIGetUserBadgeResponseToJSONTyped(json, false); } function APIGetUserBadgeResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), 'userBadge': (0, UserBadge_1.UserBadgeToJSON)(value['userBadge']), }; } //# sourceMappingURL=APIGetUserBadgeResponse.js.map