check_in_post.dart 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ///
  2. /// 手机打卡对象
  3. ///
  4. class CheckPost {
  5. String? recordId;
  6. String? checkInType;
  7. String? workPlaceId;
  8. bool? fieldWork; // 是否外勤打卡
  9. String? signDescription; //打卡说明:上班打卡,下班打卡, 可以为空.
  10. String? sourceDevice; //操作设备类别:Mac|Windows|IOS|Android|其他, 可以为空.
  11. String? description;
  12. String? recordAddress; //打卡地点描述, 可以为空.
  13. String? longitude; //经度
  14. String? latitude; //纬度
  15. String? sourceType; // "USER_CHECK",
  16. CheckPost({
  17. this.recordId,
  18. this.checkInType,
  19. this.workPlaceId,
  20. this.fieldWork,
  21. this.signDescription,
  22. this.sourceDevice,
  23. this.description,
  24. this.recordAddress,
  25. this.longitude,
  26. this.latitude,
  27. this.sourceType
  28. });
  29. Map<String, dynamic> toJson() => {
  30. "recordId": recordId,
  31. "checkInType": checkInType,
  32. "workPlaceId": workPlaceId,
  33. "fieldWork": fieldWork,
  34. "signDescription": signDescription,
  35. "sourceDevice": sourceDevice,
  36. "description": description,
  37. "recordAddress": recordAddress,
  38. "longitude": longitude,
  39. "latitude": latitude,
  40. "sourceType": sourceType,
  41. };
  42. }
  43. ///
  44. /// 手机打卡对象
  45. ///
  46. class CheckInResponse {
  47. String? checkInRecordId;
  48. String? checkInResult;
  49. String? recordDate;
  50. factory CheckInResponse.fromJson(Map<String, dynamic> json) => CheckInResponse(
  51. checkInRecordId: json["checkInRecordId"],
  52. checkInResult: json["checkInResult"],
  53. recordDate: json["recordDate"],
  54. );
  55. CheckInResponse({
  56. this.checkInRecordId,
  57. this.checkInResult,
  58. this.recordDate,
  59. });
  60. Map<String, dynamic> toJson() => {
  61. "checkInRecordId": checkInRecordId,
  62. "checkInResult": checkInResult,
  63. "recordDate": recordDate,
  64. };
  65. }