Taxes.fromJson constructor

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

Implementation

Taxes.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'];
}