create method

  1. @override
Future create()
override

Implementation

@override
Future create() async {
  DataValueSet dataValueSet = DataValueSet(
      period: this.period as String,
      orgUnit: this.orgUnit as String,
      synced: false,
      dataSet: this.dataSet as String,
      dirty: true);

  this.data = dataValueSet;

  await this.save();

  return dataValueSet;
}