get method
Implementation
Future<DocumentSnapshot> get() async {
try {
final response = await client.get("/$_index/_doc/$_id");
return DocumentSnapshot(Document.fromJson(response), success: true);
} catch (e) {
return DocumentSnapshot(null, success: false, reason: e.toString());
}
}