check_post.dart 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ///
  2. /// 手机打卡对象
  3. ///
  4. class MobileCheckPost {
  5. String? id;
  6. String? recordDateString; //打卡记录日期字符串:yyyy-mm-dd, 必须填写.
  7. String? signTime; //打卡时间: hh24:mi:ss, 必须填写.
  8. String? signDescription; //打卡说明:上班打卡,下班打卡, 可以为空.
  9. String? description;
  10. String? recordAddress; //打卡地点描述, 可以为空.
  11. String? longitude; //经度, 可以为空.
  12. String? latitude; //纬度, 可以为空.
  13. String? optMachineType; //操作设备类别:手机品牌|PAD|PC|其他, 可以为空.
  14. String? optSystemName; //操作设备类别:Mac|Windows|IOS|Android|其他, 可以为空.
  15. // ignore: non_constant_identifier_names
  16. String? checkin_type;
  17. bool? isExternal; // 是否外勤打卡
  18. String? workAddress; // 当前打卡的工作地点 外勤打卡为空
  19. MobileCheckPost({
  20. this.id,
  21. this.recordDateString,
  22. this.signTime,
  23. this.signDescription,
  24. this.description,
  25. this.recordAddress,
  26. this.longitude,
  27. this.latitude,
  28. this.optMachineType,
  29. this.optSystemName,
  30. this.checkin_type,
  31. this.isExternal,
  32. this.workAddress,
  33. });
  34. Map<String, dynamic> toJson() => {
  35. "id": id,
  36. "recordDateString": recordDateString,
  37. "signTime": signTime,
  38. "signDescription": signDescription,
  39. "description": description,
  40. "recordAddress": recordAddress,
  41. "longitude": longitude,
  42. "latitude": latitude,
  43. "optMachineType": optMachineType,
  44. "optSystemName": optSystemName,
  45. "checkin_type": checkin_type,
  46. "isExternal": isExternal,
  47. "workAddress": workAddress,
  48. };
  49. }