TaxRule.fromJson constructor

TaxRule.fromJson(
  1. Map<String, dynamic> json
)

Restores a tax rule from VPS-compatible JSON.

Implementation

factory TaxRule.fromJson(Map<String, dynamic> json) => TaxRule(
  label: json['label'] ?? 'MwSt.',
  rate: (json['rate'] ?? 19).toDouble(),
  filterField: json['filterField'] ?? '',
  filterValue: json['filterValue']?.toString() ?? '',
);