UNPKG

wallee

Version:
38 lines (37 loc) 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTransactionCommentSearchResponse = instanceOfTransactionCommentSearchResponse; exports.TransactionCommentSearchResponseFromJSON = TransactionCommentSearchResponseFromJSON; exports.TransactionCommentSearchResponseFromJSONTyped = TransactionCommentSearchResponseFromJSONTyped; exports.TransactionCommentSearchResponseToJSON = TransactionCommentSearchResponseToJSON; exports.TransactionCommentSearchResponseToJSONTyped = TransactionCommentSearchResponseToJSONTyped; const TransactionComment_1 = require("./TransactionComment"); /** * Check if a given object implements the TransactionCommentSearchResponse interface. */ function instanceOfTransactionCommentSearchResponse(value) { return true; } function TransactionCommentSearchResponseFromJSON(json) { return TransactionCommentSearchResponseFromJSONTyped(json, false); } function TransactionCommentSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(TransactionComment_1.TransactionCommentFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function TransactionCommentSearchResponseToJSON(json) { return TransactionCommentSearchResponseToJSONTyped(json, false); } function TransactionCommentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }