UNPKG

wallee

Version:
36 lines (35 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCompletionLineItem = instanceOfCompletionLineItem; exports.CompletionLineItemFromJSON = CompletionLineItemFromJSON; exports.CompletionLineItemFromJSONTyped = CompletionLineItemFromJSONTyped; exports.CompletionLineItemToJSON = CompletionLineItemToJSON; exports.CompletionLineItemToJSONTyped = CompletionLineItemToJSONTyped; /** * Check if a given object implements the CompletionLineItem interface. */ function instanceOfCompletionLineItem(value) { return true; } function CompletionLineItemFromJSON(json) { return CompletionLineItemFromJSONTyped(json, false); } 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'], }; } function CompletionLineItemToJSON(json) { return CompletionLineItemToJSONTyped(json, false); } function CompletionLineItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }