findById method
Implementation
Future<DocumentDto> findById(String collection, String id) async {
final json = asJsonObject(
await http.get(documentUrl(collection, id)),
'A document',
);
return DocumentDto.fromJson(json);
}
Future<DocumentDto> findById(String collection, String id) async {
final json = asJsonObject(
await http.get(documentUrl(collection, id)),
'A document',
);
return DocumentDto.fromJson(json);
}