wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRefundCommentSearchResponse = instanceOfRefundCommentSearchResponse;
exports.RefundCommentSearchResponseFromJSON = RefundCommentSearchResponseFromJSON;
exports.RefundCommentSearchResponseFromJSONTyped = RefundCommentSearchResponseFromJSONTyped;
exports.RefundCommentSearchResponseToJSON = RefundCommentSearchResponseToJSON;
exports.RefundCommentSearchResponseToJSONTyped = RefundCommentSearchResponseToJSONTyped;
const RefundComment_1 = require("./RefundComment");
/**
* Check if a given object implements the RefundCommentSearchResponse interface.
*/
function instanceOfRefundCommentSearchResponse(value) {
return true;
}
function RefundCommentSearchResponseFromJSON(json) {
return RefundCommentSearchResponseFromJSONTyped(json, false);
}
function RefundCommentSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RefundComment_1.RefundCommentFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function RefundCommentSearchResponseToJSON(json) {
return RefundCommentSearchResponseToJSONTyped(json, false);
}
function RefundCommentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}