ProjectModel constructor

ProjectModel({
  1. ProjectAdditionalFields? additionalFields,
  2. required String id,
  3. String? projectTypeId,
  4. String? projectNumber,
  5. String? subProjectTypeId,
  6. bool? isTaskEnabled,
  7. String? parent,
  8. required String name,
  9. String? department,
  10. String? description,
  11. String? referenceId,
  12. String? projectHierarchy,
  13. bool? nonRecoverableError = false,
  14. String? tenantId,
  15. int? rowVersion,
  16. AddressModel? address,
  17. List<TargetModel>? targets,
  18. List<DocumentModel>? documents,
  19. ProjectAdditionalDetails? additionalDetails,
  20. int? startDate,
  21. int? endDate,
  22. AuditDetails? auditDetails,
  23. ClientAuditDetails? clientAuditDetails,
  24. bool? isDeleted = false,
})

Implementation

ProjectModel({
  this.additionalFields,
  required this.id,
  this.projectTypeId,
  this.projectNumber,
  this.subProjectTypeId,
  this.isTaskEnabled,
  this.parent,
  required this.name,
  this.department,
  this.description,
  this.referenceId,
  this.projectHierarchy,
  this.nonRecoverableError = false,
  this.tenantId,
  this.rowVersion,
  this.address,
  this.targets,
  this.documents,
  this.additionalDetails,
  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();