UNPKG

wallee

Version:
30 lines (29 loc) 1.08 kB
import { TransactionCommentFromJSON, } from './TransactionComment'; /** * Check if a given object implements the TransactionCommentListResponse interface. */ export function instanceOfTransactionCommentListResponse(value) { return true; } export function TransactionCommentListResponseFromJSON(json) { return TransactionCommentListResponseFromJSONTyped(json, false); } export function TransactionCommentListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(TransactionCommentFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function TransactionCommentListResponseToJSON(json) { return TransactionCommentListResponseToJSONTyped(json, false); } export function TransactionCommentListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }