fetch static method

Future<ParseDocument> fetch(
  1. String collection,
  2. String id

returns the document in collection with id throws UnsupportedError if user has no access rights or document ist does not exist


static Future<ParseDocument> fetch(String collection, String id) async {
  var response = await http.get('$_url/parse/classes/$collection/$id',
      headers: _headers);
  return ParseDocument(
      response.body, response.statusCode == 200, null, collection);