Create a document if it doesn't exist, otherwise throw exception.
Future<Document> create(Map<String, dynamic> map) => _gateway.createDocument( fullPath.substring(0, fullPath.lastIndexOf('/')), id, _encodeMap(map));