create method
Implementation
Future<DocumentDto> create(
String collection,
Map<String, dynamic> data,
) async {
final json = asJsonObject(
await http.post(documentUrl(collection), data),
'A created document',
);
return DocumentDto.fromJson(json);
}