fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
95 lines • 4.99 kB
JavaScript
;
/* 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.instanceOfUpdateTenantUserBody = instanceOfUpdateTenantUserBody;
exports.UpdateTenantUserBodyFromJSON = UpdateTenantUserBodyFromJSON;
exports.UpdateTenantUserBodyFromJSONTyped = UpdateTenantUserBodyFromJSONTyped;
exports.UpdateTenantUserBodyToJSON = UpdateTenantUserBodyToJSON;
exports.UpdateTenantUserBodyToJSONTyped = UpdateTenantUserBodyToJSONTyped;
/**
* Check if a given object implements the UpdateTenantUserBody interface.
*/
function instanceOfUpdateTenantUserBody(value) {
return true;
}
function UpdateTenantUserBodyFromJSON(json) {
return UpdateTenantUserBodyFromJSONTyped(json, false);
}
function UpdateTenantUserBodyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'username': json['username'] == null ? undefined : json['username'],
'displayName': json['displayName'] == null ? undefined : json['displayName'],
'websiteUrl': json['websiteUrl'] == null ? undefined : json['websiteUrl'],
'email': json['email'] == null ? undefined : json['email'],
'signUpDate': json['signUpDate'] == null ? undefined : json['signUpDate'],
'verified': json['verified'] == null ? undefined : json['verified'],
'loginCount': json['loginCount'] == null ? undefined : json['loginCount'],
'optedInNotifications': json['optedInNotifications'] == null ? undefined : json['optedInNotifications'],
'optedInTenantNotifications': json['optedInTenantNotifications'] == null ? undefined : json['optedInTenantNotifications'],
'hideAccountCode': json['hideAccountCode'] == null ? undefined : json['hideAccountCode'],
'avatarSrc': json['avatarSrc'] == null ? undefined : json['avatarSrc'],
'isHelpRequestAdmin': json['isHelpRequestAdmin'] == null ? undefined : json['isHelpRequestAdmin'],
'isAccountOwner': json['isAccountOwner'] == null ? undefined : json['isAccountOwner'],
'isAdminAdmin': json['isAdminAdmin'] == null ? undefined : json['isAdminAdmin'],
'isBillingAdmin': json['isBillingAdmin'] == null ? undefined : json['isBillingAdmin'],
'isAnalyticsAdmin': json['isAnalyticsAdmin'] == null ? undefined : json['isAnalyticsAdmin'],
'isCustomizationAdmin': json['isCustomizationAdmin'] == null ? undefined : json['isCustomizationAdmin'],
'isManageDataAdmin': json['isManageDataAdmin'] == null ? undefined : json['isManageDataAdmin'],
'isCommentModeratorAdmin': json['isCommentModeratorAdmin'] == null ? undefined : json['isCommentModeratorAdmin'],
'isAPIAdmin': json['isAPIAdmin'] == null ? undefined : json['isAPIAdmin'],
'moderatorIds': json['moderatorIds'] == null ? undefined : json['moderatorIds'],
'locale': json['locale'] == null ? undefined : json['locale'],
'digestEmailFrequency': json['digestEmailFrequency'] == null ? undefined : json['digestEmailFrequency'],
'displayLabel': json['displayLabel'] == null ? undefined : json['displayLabel'],
};
}
function UpdateTenantUserBodyToJSON(json) {
return UpdateTenantUserBodyToJSONTyped(json, false);
}
function UpdateTenantUserBodyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'username': value['username'],
'displayName': value['displayName'],
'websiteUrl': value['websiteUrl'],
'email': value['email'],
'signUpDate': value['signUpDate'],
'verified': value['verified'],
'loginCount': value['loginCount'],
'optedInNotifications': value['optedInNotifications'],
'optedInTenantNotifications': value['optedInTenantNotifications'],
'hideAccountCode': value['hideAccountCode'],
'avatarSrc': value['avatarSrc'],
'isHelpRequestAdmin': value['isHelpRequestAdmin'],
'isAccountOwner': value['isAccountOwner'],
'isAdminAdmin': value['isAdminAdmin'],
'isBillingAdmin': value['isBillingAdmin'],
'isAnalyticsAdmin': value['isAnalyticsAdmin'],
'isCustomizationAdmin': value['isCustomizationAdmin'],
'isManageDataAdmin': value['isManageDataAdmin'],
'isCommentModeratorAdmin': value['isCommentModeratorAdmin'],
'isAPIAdmin': value['isAPIAdmin'],
'moderatorIds': value['moderatorIds'],
'locale': value['locale'],
'digestEmailFrequency': value['digestEmailFrequency'],
'displayLabel': value['displayLabel'],
};
}
//# sourceMappingURL=UpdateTenantUserBody.js.map