UNPKG

wallee

Version:
39 lines (38 loc) 1.21 kB
/** * Check if a given object implements the CompletionLineItemCreate interface. */ export 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; } export function CompletionLineItemCreateFromJSON(json) { return CompletionLineItemCreateFromJSONTyped(json, false); } export function CompletionLineItemCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'amount': json['amount'], 'quantity': json['quantity'], 'uniqueId': json['uniqueId'], }; } export function CompletionLineItemCreateToJSON(json) { return CompletionLineItemCreateToJSONTyped(json, false); } export function CompletionLineItemCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'amount': value['amount'], 'quantity': value['quantity'], 'uniqueId': value['uniqueId'], }; }