UNPKG

wallee

Version:
35 lines (34 loc) 919 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTax = instanceOfTax; exports.TaxFromJSON = TaxFromJSON; exports.TaxFromJSONTyped = TaxFromJSONTyped; exports.TaxToJSON = TaxToJSON; exports.TaxToJSONTyped = TaxToJSONTyped; /** * Check if a given object implements the Tax interface. */ function instanceOfTax(value) { return true; } function TaxFromJSON(json) { return TaxFromJSONTyped(json, false); } function TaxFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'rate': json['rate'] == null ? undefined : json['rate'], 'title': json['title'] == null ? undefined : json['title'], }; } function TaxToJSON(json) { return TaxToJSONTyped(json, false); } function TaxToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }