StatItem.fromJson constructor

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

Implementation

StatItem.fromJson(Map<String, dynamic> json) {
  itemName = json["item_name"];
  itemImg = json["item_img"];
  unique = json["unique"];
  price = json['price'];

  cat1 = json["cat1"];
  cat2 = json["cat2"];
  cat3 = json["cat3"];
}