fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
58 lines • 2.27 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.instanceOfBanUserFromCommentResult = instanceOfBanUserFromCommentResult;
exports.BanUserFromCommentResultFromJSON = BanUserFromCommentResultFromJSON;
exports.BanUserFromCommentResultFromJSONTyped = BanUserFromCommentResultFromJSONTyped;
exports.BanUserFromCommentResultToJSON = BanUserFromCommentResultToJSON;
exports.BanUserFromCommentResultToJSONTyped = BanUserFromCommentResultToJSONTyped;
const APIBanUserChangeLog_1 = require("./APIBanUserChangeLog");
/**
* Check if a given object implements the BanUserFromCommentResult interface.
*/
function instanceOfBanUserFromCommentResult(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
return true;
}
function BanUserFromCommentResultFromJSON(json) {
return BanUserFromCommentResultFromJSONTyped(json, false);
}
function BanUserFromCommentResultFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'status': json['status'],
'changelog': json['changelog'] == null ? undefined : (0, APIBanUserChangeLog_1.APIBanUserChangeLogFromJSON)(json['changelog']),
'code': json['code'] == null ? undefined : json['code'],
'reason': json['reason'] == null ? undefined : json['reason'],
};
}
function BanUserFromCommentResultToJSON(json) {
return BanUserFromCommentResultToJSONTyped(json, false);
}
function BanUserFromCommentResultToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': value['status'],
'changelog': (0, APIBanUserChangeLog_1.APIBanUserChangeLogToJSON)(value['changelog']),
'code': value['code'],
'reason': value['reason'],
};
}
//# sourceMappingURL=BanUserFromCommentResult.js.map