wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCustomerCommentSearchResponse = instanceOfCustomerCommentSearchResponse;
exports.CustomerCommentSearchResponseFromJSON = CustomerCommentSearchResponseFromJSON;
exports.CustomerCommentSearchResponseFromJSONTyped = CustomerCommentSearchResponseFromJSONTyped;
exports.CustomerCommentSearchResponseToJSON = CustomerCommentSearchResponseToJSON;
exports.CustomerCommentSearchResponseToJSONTyped = CustomerCommentSearchResponseToJSONTyped;
const CustomerComment_1 = require("./CustomerComment");
/**
* Check if a given object implements the CustomerCommentSearchResponse interface.
*/
function instanceOfCustomerCommentSearchResponse(value) {
return true;
}
function CustomerCommentSearchResponseFromJSON(json) {
return CustomerCommentSearchResponseFromJSONTyped(json, false);
}
function CustomerCommentSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(CustomerComment_1.CustomerCommentFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function CustomerCommentSearchResponseToJSON(json) {
return CustomerCommentSearchResponseToJSONTyped(json, false);
}
function CustomerCommentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}