UNPKG

wallee

Version:
31 lines (30 loc) 1.17 kB
import { TransactionLineItemVersionFromJSON, } from './TransactionLineItemVersion'; /** * Check if a given object implements the LineItemVersionSearchResponse interface. */ export function instanceOfLineItemVersionSearchResponse(value) { return true; } export function LineItemVersionSearchResponseFromJSON(json) { return LineItemVersionSearchResponseFromJSONTyped(json, false); } export function LineItemVersionSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(TransactionLineItemVersionFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function LineItemVersionSearchResponseToJSON(json) { return LineItemVersionSearchResponseToJSONTyped(json, false); } export function LineItemVersionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }