UNPKG

fastcomments-sdk

Version:

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

57 lines 2.02 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.instanceOfGetTenantResponse = instanceOfGetTenantResponse; exports.GetTenantResponseFromJSON = GetTenantResponseFromJSON; exports.GetTenantResponseFromJSONTyped = GetTenantResponseFromJSONTyped; exports.GetTenantResponseToJSON = GetTenantResponseToJSON; exports.GetTenantResponseToJSONTyped = GetTenantResponseToJSONTyped; const APITenant_1 = require("./APITenant"); const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the GetTenantResponse interface. */ function instanceOfGetTenantResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; if (!('tenant' in value) || value['tenant'] === undefined) return false; return true; } function GetTenantResponseFromJSON(json) { return GetTenantResponseFromJSONTyped(json, false); } function GetTenantResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), 'tenant': (0, APITenant_1.APITenantFromJSON)(json['tenant']), }; } function GetTenantResponseToJSON(json) { return GetTenantResponseToJSONTyped(json, false); } function GetTenantResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), 'tenant': (0, APITenant_1.APITenantToJSON)(value['tenant']), }; } //# sourceMappingURL=GetTenantResponse.js.map