UNPKG

fastcomments-sdk

Version:

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

59 lines 1.96 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.instanceOfPageUserEntry = instanceOfPageUserEntry; exports.PageUserEntryFromJSON = PageUserEntryFromJSON; exports.PageUserEntryFromJSONTyped = PageUserEntryFromJSONTyped; exports.PageUserEntryToJSON = PageUserEntryToJSON; exports.PageUserEntryToJSONTyped = PageUserEntryToJSONTyped; /** * Check if a given object implements the PageUserEntry interface. */ function instanceOfPageUserEntry(value) { if (!('displayName' in value) || value['displayName'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; return true; } function PageUserEntryFromJSON(json) { return PageUserEntryFromJSONTyped(json, false); } function PageUserEntryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'isPrivate': json['isPrivate'] == null ? undefined : json['isPrivate'], 'avatarSrc': json['avatarSrc'] == null ? undefined : json['avatarSrc'], 'displayName': json['displayName'], 'id': json['id'], }; } function PageUserEntryToJSON(json) { return PageUserEntryToJSONTyped(json, false); } function PageUserEntryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'isPrivate': value['isPrivate'], 'avatarSrc': value['avatarSrc'], 'displayName': value['displayName'], 'id': value['id'], }; } //# sourceMappingURL=PageUserEntry.js.map