DataValueSet constructor

DataValueSet({
  1. String? id,
  2. String? created,
  3. String? lastUpdated,
  4. String? name,
  5. required String period,
  6. required String orgUnit,
  7. required bool? synced,
  8. bool? syncFailed,
  9. DataValueSetImportSummary? lastSyncSummary,
  10. String? lastSyncDate,
  11. List<DataValue>? dataValues,
  12. String? completeDate,
  13. required String dataSet,
  14. required dynamic dirty,
})

Implementation

DataValueSet(
    {String? id,
    String? created,
    String? lastUpdated,
    String? name,
    required this.period,
    required this.orgUnit,
    required this.synced,
    this.syncFailed,
    this.lastSyncSummary,
    this.lastSyncDate,
    this.dataValues,
    this.completeDate,
    required this.dataSet,
    required dirty})
    : super(
          id: id,
          name: name,
          created: created,
          lastUpdated: lastUpdated,
          dirty: dirty) {
  this.id = '${this.dataSet}_${this.orgUnit}_${this.period}';
  this.name = this.name ?? this.id;
}