ProjectStaffModel constructor

ProjectStaffModel({
  1. ProjectStaffAdditionalFields? additionalFields,
  2. required String id,
  3. String? staffId,
  4. String? userId,
  5. String? projectId,
  6. String? channel,
  7. bool? nonRecoverableError = false,
  8. String? tenantId,
  9. int? rowVersion,
  10. int? startDate,
  11. int? endDate,
  12. AuditDetails? auditDetails,
  13. ClientAuditDetails? clientAuditDetails,
  14. bool? isDeleted = false,
})

Implementation

ProjectStaffModel({
  this.additionalFields,
  required this.id,
  this.staffId,
  this.userId,
  this.projectId,
  this.channel,
  this.nonRecoverableError = false,
  this.tenantId,
  this.rowVersion,
  int? startDate,
  int? endDate,
  super.auditDetails,super.clientAuditDetails,
  super.isDeleted = false,
}): startDateTime = startDate == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(startDate),
    endDateTime = endDate == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(endDate),
    super();