TrackedEntityInstance constructor
TrackedEntityInstance({
- String? id,
- String? name,
- String? created,
- String? lastUpdated,
- required String orgUnit,
- required bool dirty,
- required String trackedEntityType,
- String? trackedEntityInstance,
- bool? deleted,
- bool? synced,
- bool? syncFailed,
- TrackedEntityInstanceImportSummary? lastSyncSummary,
- String? lastSyncDate,
- bool? inactive,
- List<
Enrollment> ? enrollments, - List<
TrackedEntityAttributeValue> ? attributes, - bool? transfer,
- bool? saved,
- List<
TrackedEntityInstanceRelationship> ? relationships, - bool? skipDateUpdate,
Implementation
TrackedEntityInstance(
{String? id,
String? name,
String? created,
String? lastUpdated,
required this.orgUnit,
required bool dirty,
required this.trackedEntityType,
this.trackedEntityInstance,
this.deleted,
this.synced,
this.syncFailed,
this.lastSyncSummary,
this.lastSyncDate,
this.inactive,
this.enrollments,
this.attributes,
this.transfer,
this.saved,
this.relationships,
bool? skipDateUpdate})
: super(
id: id,
name: name,
created: created,
lastUpdated: lastUpdated,
skipDateUpdate: skipDateUpdate,
dirty: dirty) {
this.trackedEntityInstance = this.trackedEntityInstance ?? this.id;
this.saved = this.saved ?? false;
}