saveDocument method
Saves doc
to the database with the document id set by the database.
Implementation
Future<String> saveDocument(Document doc) => _methodChannel.invokeMethod(
'saveDocument', <String, dynamic>{'database': name, 'map': doc.toMap()});