dish_model.dart 741 B

12345678910111213141516171819202122232425262728
  1. /// Description: 菜谱
  2. /// Time : 07/25/2022 Monday
  3. /// Author : liuyuqi.gov@msn.cn
  4. class DishModel {
  5. String name;
  6. String cost; //价格
  7. String time; //供应时间
  8. //String category; //菜品分类:当日菜品(固定),特色菜品,当日新菜
  9. //String campus; //校区
  10. String canteen; //食堂
  11. bool star = false, like = false;
  12. //DateTime? star_time=null;
  13. DishModel(this.name, this.cost, this.time, this.canteen,
  14. {bool like = false, bool star = false, DateTime? star_time}) {
  15. this.like = like;
  16. this.star = star;
  17. //if(star_time!=null)this.star_time=star_time;
  18. }
  19. }
  20. class DishsModel {
  21. List<DishModel> dishs = [];
  22. DishsModel();
  23. DishsModel.fromJson(Map<String, dynamic> json) {}
  24. }