TaskModel constructor

TaskModel({
  1. TaskAdditionalFields? additionalFields,
  2. String? id,
  3. String? projectId,
  4. String? projectBeneficiaryId,
  5. String? projectBeneficiaryClientReferenceId,
  6. String? createdBy,
  7. String? status,
  8. bool? nonRecoverableError = false,
  9. required String clientReferenceId,
  10. String? tenantId,
  11. int? rowVersion,
  12. List<TaskResourceModel>? resources,
  13. AddressModel? address,
  14. int? plannedStartDate,
  15. int? plannedEndDate,
  16. int? actualStartDate,
  17. int? actualEndDate,
  18. int? createdDate,
  19. AuditDetails? auditDetails,
  20. ClientAuditDetails? clientAuditDetails,
  21. bool? isDeleted = false,
})

Implementation

TaskModel({
  this.additionalFields,
  this.id,
  this.projectId,
  this.projectBeneficiaryId,
  this.projectBeneficiaryClientReferenceId,
  this.createdBy,
  this.status,
  this.nonRecoverableError = false,
  required this.clientReferenceId,
  this.tenantId,
  this.rowVersion,
  this.resources,
  this.address,
  int? plannedStartDate,
  int? plannedEndDate,
  int? actualStartDate,
  int? actualEndDate,
  int? createdDate,
  super.auditDetails,
  super.clientAuditDetails,
  super.isDeleted = false,
})  : plannedStartDateTime = plannedStartDate == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(plannedStartDate),
      plannedEndDateTime = plannedEndDate == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(plannedEndDate),
      actualStartDateTime = actualStartDate == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(actualStartDate),
      actualEndDateTime = actualEndDate == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(actualEndDate),
      createdDateTime = createdDate == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(createdDate),
      super();