documentById method

dynamic documentById(
  1. String documentId
)

Implementation

documentById(String documentId) {
  var replayObject = {
    "type": "document",
    "document": {"id": documentId}
  };
  return replayObject;
}