TaxLines.fromJson constructor

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

Implementation

TaxLines.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  rateCode = json['rate_code'];
  rateId = json['rate_id'];
  label = json['label'];
  compound = json['compound'];
  taxTotal = json['tax_total'];
  shippingTaxTotal = json['shipping_tax_total'];
  metaData =
      (json['meta_data'] as List).map((i) => MetaData.fromJson(i)).toList();
}