UNPKG

wallee

Version:
40 lines (39 loc) 1.46 kB
import { LineItemCreateFromJSON, LineItemCreateToJSON, } from './LineItemCreate'; /** * Check if a given object implements the TransactionLineItemVersionCreate interface. */ export function instanceOfTransactionLineItemVersionCreate(value) { if (!('lineItems' in value) || value['lineItems'] === undefined) return false; if (!('externalId' in value) || value['externalId'] === undefined) return false; if (!('transaction' in value) || value['transaction'] === undefined) return false; return true; } export function TransactionLineItemVersionCreateFromJSON(json) { return TransactionLineItemVersionCreateFromJSONTyped(json, false); } export function TransactionLineItemVersionCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'lineItems': (json['lineItems'].map(LineItemCreateFromJSON)), 'externalId': json['externalId'], 'transaction': json['transaction'], }; } export function TransactionLineItemVersionCreateToJSON(json) { return TransactionLineItemVersionCreateToJSONTyped(json, false); } export function TransactionLineItemVersionCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'lineItems': (value['lineItems'].map(LineItemCreateToJSON)), 'externalId': value['externalId'], 'transaction': value['transaction'], }; }