UserModel.withData constructor

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

Implementation

UserModel.withData({
  this.name = '',
  this.email,
  this.mobileNo,
  this.organizationId,
  this.organizationName = '',
  this.age,
  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,
});