wallee
Version:
TypeScript/JavaScript client for wallee
46 lines (45 loc) • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCompletionLineItemCreate = instanceOfCompletionLineItemCreate;
exports.CompletionLineItemCreateFromJSON = CompletionLineItemCreateFromJSON;
exports.CompletionLineItemCreateFromJSONTyped = CompletionLineItemCreateFromJSONTyped;
exports.CompletionLineItemCreateToJSON = CompletionLineItemCreateToJSON;
exports.CompletionLineItemCreateToJSONTyped = CompletionLineItemCreateToJSONTyped;
/**
* Check if a given object implements the CompletionLineItemCreate interface.
*/
function instanceOfCompletionLineItemCreate(value) {
if (!('amount' in value) || value['amount'] === undefined)
return false;
if (!('quantity' in value) || value['quantity'] === undefined)
return false;
if (!('uniqueId' in value) || value['uniqueId'] === undefined)
return false;
return true;
}
function CompletionLineItemCreateFromJSON(json) {
return CompletionLineItemCreateFromJSONTyped(json, false);
}
function CompletionLineItemCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'amount': json['amount'],
'quantity': json['quantity'],
'uniqueId': json['uniqueId'],
};
}
function CompletionLineItemCreateToJSON(json) {
return CompletionLineItemCreateToJSONTyped(json, false);
}
function CompletionLineItemCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'amount': value['amount'],
'quantity': value['quantity'],
'uniqueId': value['uniqueId'],
};
}