UNPKG

wallee

Version:
28 lines (27 loc) 686 B
/** * Check if a given object implements the Tax interface. */ export function instanceOfTax(value) { return true; } export function TaxFromJSON(json) { return TaxFromJSONTyped(json, false); } export function TaxFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'rate': json['rate'] == null ? undefined : json['rate'], 'title': json['title'] == null ? undefined : json['title'], }; } export function TaxToJSON(json) { return TaxToJSONTyped(json, false); } export function TaxToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }