UNPKG

wallee

Version:
29 lines (28 loc) 977 B
/** * Check if a given object implements the LineItemReduction interface. */ export function instanceOfLineItemReduction(value) { return true; } export function LineItemReductionFromJSON(json) { return LineItemReductionFromJSONTyped(json, false); } export function LineItemReductionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'quantityReduction': json['quantityReduction'] == null ? undefined : json['quantityReduction'], 'unitPriceReduction': json['unitPriceReduction'] == null ? undefined : json['unitPriceReduction'], 'lineItemUniqueId': json['lineItemUniqueId'] == null ? undefined : json['lineItemUniqueId'], }; } export function LineItemReductionToJSON(json) { return LineItemReductionToJSONTyped(json, false); } export function LineItemReductionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }