OperationMessage class

A basic message in the Apollo WebSocket and graphql-transport-ws subprotocols.

Constructors

OperationMessage(String type, {dynamic payload, String? id})
const
OperationMessage.fromJson(Map map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
final
payload → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

gqlComplete → const String
gqlConnectionAck → const String
gqlConnectionError → const String
gqlConnectionInit → const String
gqlConnectionKeepAlive → const String
gqlConnectionTerminate → const String
gqlData → const String
gqlError → const String
gqlStart → const String
gqlStop → const String
next → const String
ping → const String
pong → const String
subscribe → const String