Item.fromJson constructor

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

Implementation

factory Item.fromJson(Map<String, dynamic> json) {
  return Item(
    json['name'],
    sellIn: json['sellIn'],
    quality: json['quality'],
  );
}