wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfTransactionCommentListResponse = instanceOfTransactionCommentListResponse;
exports.TransactionCommentListResponseFromJSON = TransactionCommentListResponseFromJSON;
exports.TransactionCommentListResponseFromJSONTyped = TransactionCommentListResponseFromJSONTyped;
exports.TransactionCommentListResponseToJSON = TransactionCommentListResponseToJSON;
exports.TransactionCommentListResponseToJSONTyped = TransactionCommentListResponseToJSONTyped;
const TransactionComment_1 = require("./TransactionComment");
/**
* Check if a given object implements the TransactionCommentListResponse interface.
*/
function instanceOfTransactionCommentListResponse(value) {
return true;
}
function TransactionCommentListResponseFromJSON(json) {
return TransactionCommentListResponseFromJSONTyped(json, false);
}
function TransactionCommentListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionComment_1.TransactionCommentFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function TransactionCommentListResponseToJSON(json) {
return TransactionCommentListResponseToJSONTyped(json, false);
}
function TransactionCommentListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}