wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfInvoiceCommentSearchResponse = instanceOfInvoiceCommentSearchResponse;
exports.InvoiceCommentSearchResponseFromJSON = InvoiceCommentSearchResponseFromJSON;
exports.InvoiceCommentSearchResponseFromJSONTyped = InvoiceCommentSearchResponseFromJSONTyped;
exports.InvoiceCommentSearchResponseToJSON = InvoiceCommentSearchResponseToJSON;
exports.InvoiceCommentSearchResponseToJSONTyped = InvoiceCommentSearchResponseToJSONTyped;
const TransactionInvoiceComment_1 = require("./TransactionInvoiceComment");
/**
* Check if a given object implements the InvoiceCommentSearchResponse interface.
*/
function instanceOfInvoiceCommentSearchResponse(value) {
return true;
}
function InvoiceCommentSearchResponseFromJSON(json) {
return InvoiceCommentSearchResponseFromJSONTyped(json, false);
}
function InvoiceCommentSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionInvoiceComment_1.TransactionInvoiceCommentFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function InvoiceCommentSearchResponseToJSON(json) {
return InvoiceCommentSearchResponseToJSONTyped(json, false);
}
function InvoiceCommentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}