edit method
Implementation
Future<DocumentDto> edit(
String collection,
String? id,
Map<String, dynamic> data,
) async {
String baseUrl = config.getDatabaseUrl();
String url = '$baseUrl/$collection/$id';
Map<String, dynamic> json = await http.patch(url, data);
return DocumentDto.fromJson(json);
}