deleteOnline method
Implementation
Future<Map<String, dynamic>> deleteOnline({Dio? dioTestClient}) async {
final dhisUrl = await this.dhisUrl();
if (this.id != null) {
final response = await HttpClient.delete(this.id, dhisUrl,
database: this.database, dioTestClient: dioTestClient);
this
.repository
.deleteById(id: this.id as String, database: this.database);
return response.body;
}
return {'message': 'Something is wrong'};
}