wallee
Version:
TypeScript/JavaScript client for wallee
28 lines (27 loc) • 801 B
JavaScript
/**
* 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 {};
}