Enrollment constructor
Enrollment({
- String? id,
- String? name,
- String? created,
- String? lastUpdated,
- String? enrollment,
- String? incidentDate,
- String? enrollmentDate,
- required String trackedEntityType,
- required String orgUnit,
- required String program,
- required bool dirty,
- String? status,
- bool? synced,
- bool? syncFailed,
- EnrollmentImportSummary? lastSyncSummary,
- Geometry? geometry,
- String? lastSyncDate,
- List<
Event> ? events, - dynamic trackedEntityInstance,
Implementation
Enrollment(
{String? id,
String? name,
String? created,
String? lastUpdated,
this.enrollment,
this.incidentDate,
this.enrollmentDate,
required this.trackedEntityType,
required this.orgUnit,
required this.program,
required bool dirty,
this.status,
this.synced,
this.syncFailed,
this.lastSyncSummary,
this.geometry,
this.lastSyncDate,
this.events,
this.trackedEntityInstance})
: super(
id: id,
name: name,
created: created,
lastUpdated: lastUpdated,
dirty: dirty) {
this.enrollment = this.enrollment ?? this.id;
this.name = this.name ?? this.enrollment;
this.incidentDate = this.incidentDate ?? this.created;
this.enrollmentDate = this.enrollmentDate ?? this.created;
}