submit_model.dart 727 B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter_tracker/utils/time_util.dart';
  2. /// Description:
  3. /// Time : 2021年12月03日 Friday
  4. /// Author : liuyuqi.gov@msncn
  5. class SubmitModel {
  6. int userid = 0;
  7. DateTime time = DateTime(0);
  8. String address = "";
  9. String telphone = "";
  10. int health = 0;
  11. String pic = "";
  12. SubmitModel(
  13. {required this.userid,
  14. required this.time,
  15. required this.address,
  16. required this.telphone,
  17. required this.health,
  18. required this.pic});
  19. SubmitModel.fromJson(Map<String, dynamic> json) {
  20. userid = int.parse(json['userid']);
  21. time = TimeUtil.getDateTime(json['time']);
  22. address = json['address'];
  23. telphone = json['telphone'];
  24. health = json['health'];
  25. }
  26. }