UNPKG

wallee

Version:
28 lines (27 loc) 801 B
/** * Check if a given object implements the LineItemAttribute interface. */ export function instanceOfLineItemAttribute(value) { return true; } export function LineItemAttributeFromJSON(json) { return LineItemAttributeFromJSONTyped(json, false); } export function LineItemAttributeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'label': json['label'] == null ? undefined : json['label'], 'value': json['value'] == null ? undefined : json['value'], }; } export function LineItemAttributeToJSON(json) { return LineItemAttributeToJSONTyped(json, false); } export function LineItemAttributeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }