TaxLine.fromJson constructor

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

Implementation

factory TaxLine.fromJson(Map<String, dynamic> json) => TaxLine(
      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: List<dynamic>.from(json["meta_data"].map((x) => x)),
    );