update method
Updates a document
Implementation
Future<Map<String, dynamic>> update(
String collection,
String id,
Map<String, dynamic> updates,
) async {
final response = await _client.put(
Uri.parse('$baseUrl/collections/$collection/documents/$id'),
headers: _headers,
body: jsonEncode(updates),
);
return _handleResponse(response);
}