UNPKG

wallee

Version:
30 lines (29 loc) 1.07 kB
import { TransactionInvoiceCommentFromJSON, } from './TransactionInvoiceComment'; /** * Check if a given object implements the InvoiceCommentListResponse interface. */ export function instanceOfInvoiceCommentListResponse(value) { return true; } export function InvoiceCommentListResponseFromJSON(json) { return InvoiceCommentListResponseFromJSONTyped(json, false); } export function InvoiceCommentListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(TransactionInvoiceCommentFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function InvoiceCommentListResponseToJSON(json) { return InvoiceCommentListResponseToJSONTyped(json, false); } export function InvoiceCommentListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }