fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
57 lines • 2.02 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.instanceOfUpdateModeratorBody = instanceOfUpdateModeratorBody;
exports.UpdateModeratorBodyFromJSON = UpdateModeratorBodyFromJSON;
exports.UpdateModeratorBodyFromJSONTyped = UpdateModeratorBodyFromJSONTyped;
exports.UpdateModeratorBodyToJSON = UpdateModeratorBodyToJSON;
exports.UpdateModeratorBodyToJSONTyped = UpdateModeratorBodyToJSONTyped;
/**
* Check if a given object implements the UpdateModeratorBody interface.
*/
function instanceOfUpdateModeratorBody(value) {
return true;
}
function UpdateModeratorBodyFromJSON(json) {
return UpdateModeratorBodyFromJSONTyped(json, false);
}
function UpdateModeratorBodyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json,
'name': json['name'] == null ? undefined : json['name'],
'email': json['email'] == null ? undefined : json['email'],
'userId': json['userId'] == null ? undefined : json['userId'],
'moderationGroupIds': json['moderationGroupIds'] == null ? undefined : json['moderationGroupIds'],
};
}
function UpdateModeratorBodyToJSON(json) {
return UpdateModeratorBodyToJSONTyped(json, false);
}
function UpdateModeratorBodyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
...value,
'name': value['name'],
'email': value['email'],
'userId': value['userId'],
'moderationGroupIds': value['moderationGroupIds'],
};
}
//# sourceMappingURL=UpdateModeratorBody.js.map