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. String? projectType,
  19. List<DocumentModel>? documents,
  20. ProjectAdditionalDetails? additionalDetails,
  21. int? startDate,
  22. int? endDate,
  23. AuditDetails? auditDetails,
  24. ClientAuditDetails? clientAuditDetails,
  25. 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.projectType,
  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();