wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 898 B
JavaScript
/**
* Check if a given object implements the CompletionLineItem interface.
*/
export function instanceOfCompletionLineItem(value) {
return true;
}
export function CompletionLineItemFromJSON(json) {
return CompletionLineItemFromJSONTyped(json, false);
}
export function CompletionLineItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'amount': json['amount'] == null ? undefined : json['amount'],
'quantity': json['quantity'] == null ? undefined : json['quantity'],
'uniqueId': json['uniqueId'] == null ? undefined : json['uniqueId'],
};
}
export function CompletionLineItemToJSON(json) {
return CompletionLineItemToJSONTyped(json, false);
}
export function CompletionLineItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}