fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
60 lines • 2.26 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.instanceOfFlagCommentResponse = instanceOfFlagCommentResponse;
exports.FlagCommentResponseFromJSON = FlagCommentResponseFromJSON;
exports.FlagCommentResponseFromJSONTyped = FlagCommentResponseFromJSONTyped;
exports.FlagCommentResponseToJSON = FlagCommentResponseToJSON;
exports.FlagCommentResponseToJSONTyped = FlagCommentResponseToJSONTyped;
const APIStatus_1 = require("./APIStatus");
/**
* Check if a given object implements the FlagCommentResponse interface.
*/
function instanceOfFlagCommentResponse(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
return true;
}
function FlagCommentResponseFromJSON(json) {
return FlagCommentResponseFromJSONTyped(json, false);
}
function FlagCommentResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'statusCode': json['statusCode'] == null ? undefined : json['statusCode'],
'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']),
'code': json['code'] == null ? undefined : json['code'],
'reason': json['reason'] == null ? undefined : json['reason'],
'wasUnapproved': json['wasUnapproved'] == null ? undefined : json['wasUnapproved'],
};
}
function FlagCommentResponseToJSON(json) {
return FlagCommentResponseToJSONTyped(json, false);
}
function FlagCommentResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'statusCode': value['statusCode'],
'status': (0, APIStatus_1.APIStatusToJSON)(value['status']),
'code': value['code'],
'reason': value['reason'],
'wasUnapproved': value['wasUnapproved'],
};
}
//# sourceMappingURL=FlagCommentResponse.js.map