Provinces.fromJson constructor

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

Implementation

Provinces.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  countryId = json['country_id'];
  name = json['name'];
  code = json['code'];
  taxName = json['tax_name'];
  taxType = json['tax_type'];
  shippingZoneId = json['shipping_zone_id'];
  tax = double.parse(json['tax'].toString());
  taxPercentage = double.parse(json['tax_percentage'].toString());
}