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