FeeLineTax.fromJson constructor

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

Implementation

FeeLineTax.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'];
  if (json['meta_data'] != null) {
    metaData =
        (json['meta_data'] as List).map((i) => MetaData.fromJson(i)).toList();
  }
}