get method
Get a document
Implementation
Future<Document> get() async {
var request = collection.client.prepareRequest('/_api/document/${id}');
var streamedResponse = await collection.client.send(request);
var doc_str = await streamedResponse.stream.bytesToString();
Map<dynamic, dynamic> doc = jsonDecode(doc_str);
//this.id = doc.remove('_id');
//this.key = doc.remove('_key');
rev = doc.remove('_rev');
data = doc;
return this;
}