Detail.fromJson constructor

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

Implementation

Detail.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  description = json['description'];
  barcode = json['barcode'];
  slug = json['slug'];
}