DataValue constructor

DataValue({
  1. String? id,
  2. String? created,
  3. String? lastUpdated,
  4. String? name,
  5. required String dataElement,
  6. required String? attributeOptionCombo,
  7. required String categoryOptionCombo,
  8. required dynamic dataValueSet,
  9. required String value,
  10. required bool? synced,
  11. String? comment,
  12. required dynamic dirty,
})

Implementation

DataValue(
    {String? id,
    String? created,
    String? lastUpdated,
    String? name,
    required this.dataElement,
    required this.attributeOptionCombo,
    required this.categoryOptionCombo,
    required this.dataValueSet,
    required this.value,
    required this.synced,
    this.comment,
    required dirty})
    : super(
          id: id,
          name: name,
          created: created,
          lastUpdated: lastUpdated,
          dirty: dirty) {
  this.id =
      '${this.dataElement}_${this.categoryOptionCombo}_${this.dataValueSet}';
  this.name = this.name ?? this.id;
}