TaskModel constructor
TaskModel({
- TaskAdditionalFields? additionalFields,
- String? id,
- String? projectId,
- String? projectBeneficiaryId,
- String? projectBeneficiaryClientReferenceId,
- String? createdBy,
- String? status,
- bool? nonRecoverableError = false,
- required String clientReferenceId,
- String? tenantId,
- int? rowVersion,
- List<
TaskResourceModel> ? resources, - AddressModel? address,
- int? plannedStartDate,
- int? plannedEndDate,
- int? actualStartDate,
- int? actualEndDate,
- int? createdDate,
- AuditDetails? auditDetails,
- ClientAuditDetails? clientAuditDetails,
- 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();