getDocumentById method Null safety

Future<Map<String, dynamic>> getDocumentById(
  1. String documentId
)

Get document by id.

Returns a Map containing the document information with the documentId.

Implementation

Future<Map<String, dynamic>> getDocumentById(String documentId) {
  return request(HTTPMethod.get, 'documents/$documentId');
}