UserModel.withData constructor

UserModel.withData({
  1. String? name = '',
  2. String? email,
  3. int? mobileNo,
  4. String? organizationId,
  5. String? organizationName = '',
  6. int? age,
  7. String? documentId,
  8. bool delete = false,
  9. DateTime? autoModifiedTimeStamp,
  10. String? createdBy,
  11. DateTime? createdOn,
  12. String? deviceId,
  13. String? deviceName,
  14. String? doctorId,
  15. List? amcLog = const [],
  16. dynamic amcPayment,
  17. String? amcStartDate,
  18. String? amcValidity,
  19. String? appVersion,
  20. Map<String, dynamic>? associations,
  21. Map<String, dynamic>? bulletin,
  22. String? deviceCode,
  23. bool? isActive,
  24. String? lastSeenTime,
  25. DateTime? modifiedAt,
  26. String? modifiedTimeStamp,
  27. int? noOfMother = 0,
  28. int? noOfTests = 0,
  29. String? notificationToken,
  30. int? sync,
  31. bool? testAccount,
  32. String? type,
  33. String? uid,
  34. double? weight,
  35. String? patientId,
  36. String? platformId,
  37. String? platformRegAt,
  38. Map<String, dynamic>? babyBeatAssociation,
  39. String? organizationNameBabyBeat,
})

Implementation

UserModel.withData({
  this.name = '',
  this.email,
  this.mobileNo,
  this.organizationId,
  this.organizationName = '',
  this.age,
  this.documentId,
  this.delete = false,
  this.autoModifiedTimeStamp,
  this.createdBy,
  this.createdOn,
  this.deviceId,
  this.deviceName,
  this.doctorId,
  this.amcLog = const [],
  this.amcPayment,
  this.amcStartDate,
  this.amcValidity,
  this.appVersion,
  this.associations,
  this.bulletin,
  this.deviceCode,
  this.isActive,
  this.lastSeenTime,
  this.modifiedAt,
  this.modifiedTimeStamp,
  this.noOfMother = 0,
  this.noOfTests = 0,
  this.notificationToken,
  this.sync,
  this.testAccount,
  this.type,
  this.uid,
  this.weight,
  this.patientId,
  this.platformId,
  this.platformRegAt,
  this.babyBeatAssociation,
  this.organizationNameBabyBeat,
});