data_sync.dart 841 B

12345678910111213141516171819202122232425262728293031323334
  1. import 'package:vitalapp/database/entities/defines.dart';
  2. class OfflineRecordModel {
  3. final String patientName;
  4. final String patientCode;
  5. final String cardNo;
  6. final OfflineDataSyncState state;
  7. final bool isPatientUpdate;
  8. final int diagnosisCount;
  9. final int followUpCount;
  10. OfflineRecordModel({
  11. required this.patientName,
  12. required this.patientCode,
  13. required this.cardNo,
  14. required this.state,
  15. required this.isPatientUpdate,
  16. required this.diagnosisCount,
  17. required this.followUpCount,
  18. });
  19. factory OfflineRecordModel.fromJson(Map<String, dynamic> jsonMap) {
  20. // TODO
  21. return OfflineRecordModel(
  22. cardNo: '',
  23. diagnosisCount: 0,
  24. followUpCount: 0,
  25. isPatientUpdate: false,
  26. patientCode: '',
  27. patientName: '',
  28. state: OfflineDataSyncState.wait,
  29. );
  30. }
  31. }