UNPKG

fastcomments-sdk

Version:

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

57 lines 2.4 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.instanceOfAPIGetUserBadgeProgressResponse = instanceOfAPIGetUserBadgeProgressResponse; exports.APIGetUserBadgeProgressResponseFromJSON = APIGetUserBadgeProgressResponseFromJSON; exports.APIGetUserBadgeProgressResponseFromJSONTyped = APIGetUserBadgeProgressResponseFromJSONTyped; exports.APIGetUserBadgeProgressResponseToJSON = APIGetUserBadgeProgressResponseToJSON; exports.APIGetUserBadgeProgressResponseToJSONTyped = APIGetUserBadgeProgressResponseToJSONTyped; const APIStatus_1 = require("./APIStatus"); const UserBadgeProgress_1 = require("./UserBadgeProgress"); /** * Check if a given object implements the APIGetUserBadgeProgressResponse interface. */ function instanceOfAPIGetUserBadgeProgressResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; if (!('userBadgeProgress' in value) || value['userBadgeProgress'] === undefined) return false; return true; } function APIGetUserBadgeProgressResponseFromJSON(json) { return APIGetUserBadgeProgressResponseFromJSONTyped(json, false); } function APIGetUserBadgeProgressResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), 'userBadgeProgress': (0, UserBadgeProgress_1.UserBadgeProgressFromJSON)(json['userBadgeProgress']), }; } function APIGetUserBadgeProgressResponseToJSON(json) { return APIGetUserBadgeProgressResponseToJSONTyped(json, false); } function APIGetUserBadgeProgressResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), 'userBadgeProgress': (0, UserBadgeProgress_1.UserBadgeProgressToJSON)(value['userBadgeProgress']), }; } //# sourceMappingURL=APIGetUserBadgeProgressResponse.js.map