WriteRequest class

The request for Firestore.Write.

The first request creates a stream, or resumes an existing one from a token.

When creating a new stream, the server replies with a response containing only an ID and a token, to use in the next request.

When resuming a stream, the server first streams any responses later than the given token, then a response containing only an up-to-date token, to use in the next request.

Constructors

WriteRequest()
WriteRequest.fromJson(Map _json)

Properties

labels ↔ Map<String, String>
Labels associated with this write request.
read / write
streamId ↔ String
The ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created.
read / write
streamToken ↔ String
A stream token that was previously sent by the server. [...]
read / write
streamTokenAsBytes ↔ List<int>
read / write
writes ↔ List<Write>
The writes to apply. [...]
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited