create method

Future<Document> create (
  1. Map<String, dynamic> map
)

Create a document if it doesn't exist, otherwise throw exception.

Implementation

Future<Document> create(Map<String, dynamic> map) => _gateway.createDocument(
    fullPath.substring(0, fullPath.lastIndexOf('/')), id, _encodeMap(map));