Test.withData constructor

Test.withData({
  1. String? id,
  2. String? documentId,
  3. String? motherId,
  4. String? deviceId,
  5. String? doctorId,
  6. int? weight,
  7. int? gAge,
  8. int? age,
  9. int? fisherScore,
  10. int? fisherScore2,
  11. String? motherName,
  12. String? deviceName,
  13. String? doctorName,
  14. String? patientId,
  15. String? organizationId,
  16. String? organizationName,
  17. String? imageLocalPath,
  18. String? imageFirePath,
  19. String? audioLocalPath,
  20. String? audioFirePath,
  21. bool? isImgSynced,
  22. bool? isAudioSynced,
  23. List<int>? bpmEntries,
  24. List<int>? bpmEntries2,
  25. List<int>? baseLineEntries,
  26. List<int>? movementEntries,
  27. List<int>? autoFetalMovement,
  28. List<int>? tocoEntries,
  29. int? lengthOfTest,
  30. int? averageFHR,
  31. bool? live,
  32. bool? testByMother,
  33. String? testById,
  34. String? interpretationType,
  35. String? interpretationExtraComments,
  36. Map<String, dynamic>? associations,
  37. Map<String, dynamic>? autoInterpretations,
  38. bool? delete = false,
  39. DateTime? createdOn,
  40. String? createdBy,
})

Constructs a Test instance with the given data.

Implementation

Test.withData({
  this.id,
  this.documentId,
  this.motherId,
  this.deviceId,
  this.doctorId,
  this.weight,
  this.gAge,
  this.age,
  this.fisherScore,
  this.fisherScore2,
  this.motherName,
  this.deviceName,
  this.doctorName,
  this.patientId,
  this.organizationId,
  this.organizationName,
  this.imageLocalPath,
  this.imageFirePath,
  this.audioLocalPath,
  this.audioFirePath,
  this.isImgSynced,
  this.isAudioSynced,
  this.bpmEntries,
  this.bpmEntries2,
  this.baseLineEntries,
  this.movementEntries,
  this.autoFetalMovement,
  this.tocoEntries,
  this.lengthOfTest,
  this.averageFHR,
  this.live,
  this.testByMother,
  this.testById,
  this.interpretationType,
  this.interpretationExtraComments,
  this.associations,
  this.autoInterpretations,
  this.delete = false,
  this.createdOn,
  this.createdBy,
});