AdhocTaxes.fromJson constructor

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

Implementation

AdhocTaxes.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  unitPrice = json['unitPrice'] != null
      ? new UnitPrice.fromJson(json['unitPrice'])
      : null;
  totalPrice = json['totalPrice'] != null
      ? new UnitPrice.fromJson(json['totalPrice'])
      : null;
  quantity = json['quantity'];
  taxType = json['taxType'];
  taxRate = json['taxRate'];
  adhoc = json['adhoc'];
}