UNPKG

fastcomments-sdk

Version:

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

81 lines 3.99 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.instanceOfGetUserInternalProfileResponseProfile = instanceOfGetUserInternalProfileResponseProfile; exports.GetUserInternalProfileResponseProfileFromJSON = GetUserInternalProfileResponseProfileFromJSON; exports.GetUserInternalProfileResponseProfileFromJSONTyped = GetUserInternalProfileResponseProfileFromJSONTyped; exports.GetUserInternalProfileResponseProfileToJSON = GetUserInternalProfileResponseProfileToJSON; exports.GetUserInternalProfileResponseProfileToJSONTyped = GetUserInternalProfileResponseProfileToJSONTyped; /** * Check if a given object implements the GetUserInternalProfileResponseProfile interface. */ function instanceOfGetUserInternalProfileResponseProfile(value) { return true; } function GetUserInternalProfileResponseProfileFromJSON(json) { return GetUserInternalProfileResponseProfileFromJSONTyped(json, false); } function GetUserInternalProfileResponseProfileFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'commenterName': json['commenterName'] == null ? undefined : json['commenterName'], 'firstCommentDate': json['firstCommentDate'] == null ? undefined : (new Date(json['firstCommentDate'])), 'ipHash': json['ipHash'] == null ? undefined : json['ipHash'], 'countryFlag': json['countryFlag'] == null ? undefined : json['countryFlag'], 'countryCode': json['countryCode'] == null ? undefined : json['countryCode'], 'websiteUrl': json['websiteUrl'] == null ? undefined : json['websiteUrl'], 'bio': json['bio'] == null ? undefined : json['bio'], 'karma': json['karma'] == null ? undefined : json['karma'], 'locale': json['locale'] == null ? undefined : json['locale'], 'verified': json['verified'] == null ? undefined : json['verified'], 'avatarSrc': json['avatarSrc'] == null ? undefined : json['avatarSrc'], 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'username': json['username'] == null ? undefined : json['username'], 'commenterEmail': json['commenterEmail'] == null ? undefined : json['commenterEmail'], 'email': json['email'] == null ? undefined : json['email'], 'anonUserId': json['anonUserId'] == null ? undefined : json['anonUserId'], 'userId': json['userId'] == null ? undefined : json['userId'], }; } function GetUserInternalProfileResponseProfileToJSON(json) { return GetUserInternalProfileResponseProfileToJSONTyped(json, false); } function GetUserInternalProfileResponseProfileToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'commenterName': value['commenterName'], 'firstCommentDate': value['firstCommentDate'] == null ? undefined : (value['firstCommentDate'].toISOString()), 'ipHash': value['ipHash'], 'countryFlag': value['countryFlag'], 'countryCode': value['countryCode'], 'websiteUrl': value['websiteUrl'], 'bio': value['bio'], 'karma': value['karma'], 'locale': value['locale'], 'verified': value['verified'], 'avatarSrc': value['avatarSrc'], 'displayName': value['displayName'], 'username': value['username'], 'commenterEmail': value['commenterEmail'], 'email': value['email'], 'anonUserId': value['anonUserId'], 'userId': value['userId'], }; } //# sourceMappingURL=GetUserInternalProfileResponseProfile.js.map