wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.17 kB
JavaScript
import { TransactionCommentFromJSON, } from './TransactionComment';
/**
* Check if a given object implements the TransactionCommentSearchResponse interface.
*/
export function instanceOfTransactionCommentSearchResponse(value) {
return true;
}
export function TransactionCommentSearchResponseFromJSON(json) {
return TransactionCommentSearchResponseFromJSONTyped(json, false);
}
export function TransactionCommentSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionCommentFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function TransactionCommentSearchResponseToJSON(json) {
return TransactionCommentSearchResponseToJSONTyped(json, false);
}
export function TransactionCommentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}