UNPKG

fastcomments-sdk

Version:

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

58 lines 2.21 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.instanceOfGetSSOUserByIdAPIResponse = instanceOfGetSSOUserByIdAPIResponse; exports.GetSSOUserByIdAPIResponseFromJSON = GetSSOUserByIdAPIResponseFromJSON; exports.GetSSOUserByIdAPIResponseFromJSONTyped = GetSSOUserByIdAPIResponseFromJSONTyped; exports.GetSSOUserByIdAPIResponseToJSON = GetSSOUserByIdAPIResponseToJSON; exports.GetSSOUserByIdAPIResponseToJSONTyped = GetSSOUserByIdAPIResponseToJSONTyped; const APISSOUser_1 = require("./APISSOUser"); /** * Check if a given object implements the GetSSOUserByIdAPIResponse interface. */ function instanceOfGetSSOUserByIdAPIResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } function GetSSOUserByIdAPIResponseFromJSON(json) { return GetSSOUserByIdAPIResponseFromJSONTyped(json, false); } function GetSSOUserByIdAPIResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reason': json['reason'] == null ? undefined : json['reason'], 'code': json['code'] == null ? undefined : json['code'], 'user': json['user'] == null ? undefined : (0, APISSOUser_1.APISSOUserFromJSON)(json['user']), 'status': json['status'], }; } function GetSSOUserByIdAPIResponseToJSON(json) { return GetSSOUserByIdAPIResponseToJSONTyped(json, false); } function GetSSOUserByIdAPIResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reason': value['reason'], 'code': value['code'], 'user': (0, APISSOUser_1.APISSOUserToJSON)(value['user']), 'status': value['status'], }; } //# sourceMappingURL=GetSSOUserByIdAPIResponse.js.map