fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
64 lines • 2.57 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.instanceOfUpdateQuestionResultBody = instanceOfUpdateQuestionResultBody;
exports.UpdateQuestionResultBodyFromJSON = UpdateQuestionResultBodyFromJSON;
exports.UpdateQuestionResultBodyFromJSONTyped = UpdateQuestionResultBodyFromJSONTyped;
exports.UpdateQuestionResultBodyToJSON = UpdateQuestionResultBodyToJSON;
exports.UpdateQuestionResultBodyToJSONTyped = UpdateQuestionResultBodyToJSONTyped;
const MetaItem_1 = require("./MetaItem");
/**
* Check if a given object implements the UpdateQuestionResultBody interface.
*/
function instanceOfUpdateQuestionResultBody(value) {
return true;
}
function UpdateQuestionResultBodyFromJSON(json) {
return UpdateQuestionResultBodyFromJSONTyped(json, false);
}
function UpdateQuestionResultBodyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json,
'urlId': json['urlId'] == null ? undefined : json['urlId'],
'anonUserId': json['anonUserId'] == null ? undefined : json['anonUserId'],
'userId': json['userId'] == null ? undefined : json['userId'],
'value': json['value'] == null ? undefined : json['value'],
'commentId': json['commentId'] == null ? undefined : json['commentId'],
'questionId': json['questionId'] == null ? undefined : json['questionId'],
'meta': json['meta'] == null ? undefined : (json['meta'].map(MetaItem_1.MetaItemFromJSON)),
};
}
function UpdateQuestionResultBodyToJSON(json) {
return UpdateQuestionResultBodyToJSONTyped(json, false);
}
function UpdateQuestionResultBodyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
...value,
'urlId': value['urlId'],
'anonUserId': value['anonUserId'],
'userId': value['userId'],
'value': value['value'],
'commentId': value['commentId'],
'questionId': value['questionId'],
'meta': value['meta'] == null ? undefined : (value['meta'].map(MetaItem_1.MetaItemToJSON)),
};
}
//# sourceMappingURL=UpdateQuestionResultBody.js.map