ProjectModel constructor
ProjectModel({
- ProjectAdditionalFields? additionalFields,
- required String id,
- String? projectTypeId,
- String? projectNumber,
- String? subProjectTypeId,
- bool? isTaskEnabled,
- String? parent,
- required String name,
- String? department,
- String? description,
- String? referenceId,
- String? projectHierarchy,
- bool? nonRecoverableError = false,
- String? tenantId,
- int? rowVersion,
- AddressModel? address,
- List<
TargetModel> ? targets, - String? projectType,
- List<
DocumentModel> ? documents, - ProjectAdditionalDetails? additionalDetails,
- int? startDate,
- int? endDate,
- AuditDetails? auditDetails,
- ClientAuditDetails? clientAuditDetails,
- 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();