Event constructor
Event({
- String? id,
- String? name,
- String? created,
- String? lastUpdated,
- String? event,
- required String orgUnit,
- required String status,
- required dynamic dirty,
- String? eventDate,
- String? dueDate,
- bool? deleted,
- bool? synced,
- bool? syncFailed,
- EventImportSummary? lastSyncSummary,
- String? lastSyncDate,
- String? storedBy,
- String? coordinate,
- String? trackedEntityInstance,
- String? attributeCategoryOptions,
- String? attributeOptionCombo,
- String? notes,
- bool? saved,
- String? eventType,
- required dynamic programStage,
- dynamic enrollment,
- List<
EventDataValue> ? dataValues,
Implementation
Event(
{String? id,
String? name,
String? created,
String? lastUpdated,
this.event,
required this.orgUnit,
required this.status,
required dirty,
this.eventDate,
this.dueDate,
this.deleted,
this.synced,
this.syncFailed,
this.lastSyncSummary,
this.lastSyncDate,
this.storedBy,
this.coordinate,
this.trackedEntityInstance,
this.attributeCategoryOptions,
this.attributeOptionCombo,
this.notes,
this.saved,
this.eventType,
required this.programStage,
this.enrollment,
this.dataValues})
: super(
id: id,
name: name,
created: created,
lastUpdated: lastUpdated,
dirty: dirty) {
this.event = this.event ?? this.id;
this.name = this.name ?? this.event;
this.saved = this.saved ?? false;
}