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