UNPKG

fastcomments-sdk

Version:

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

58 lines 2.39 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.instanceOfGetSubscriptionsAPIResponse = instanceOfGetSubscriptionsAPIResponse; exports.GetSubscriptionsAPIResponseFromJSON = GetSubscriptionsAPIResponseFromJSON; exports.GetSubscriptionsAPIResponseFromJSONTyped = GetSubscriptionsAPIResponseFromJSONTyped; exports.GetSubscriptionsAPIResponseToJSON = GetSubscriptionsAPIResponseToJSON; exports.GetSubscriptionsAPIResponseToJSONTyped = GetSubscriptionsAPIResponseToJSONTyped; const APIUserSubscription_1 = require("./APIUserSubscription"); /** * Check if a given object implements the GetSubscriptionsAPIResponse interface. */ function instanceOfGetSubscriptionsAPIResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } function GetSubscriptionsAPIResponseFromJSON(json) { return GetSubscriptionsAPIResponseFromJSONTyped(json, false); } function GetSubscriptionsAPIResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reason': json['reason'] == null ? undefined : json['reason'], 'code': json['code'] == null ? undefined : json['code'], 'subscriptions': json['subscriptions'] == null ? undefined : (json['subscriptions'].map(APIUserSubscription_1.APIUserSubscriptionFromJSON)), 'status': json['status'], }; } function GetSubscriptionsAPIResponseToJSON(json) { return GetSubscriptionsAPIResponseToJSONTyped(json, false); } function GetSubscriptionsAPIResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reason': value['reason'], 'code': value['code'], 'subscriptions': value['subscriptions'] == null ? undefined : (value['subscriptions'].map(APIUserSubscription_1.APIUserSubscriptionToJSON)), 'status': value['status'], }; } //# sourceMappingURL=GetSubscriptionsAPIResponse.js.map