DefaultEventParser class final

The DefaultEventParser is a default parser for ServerEvent objects.

It uses a simple switch statement to parse the JSON map into a concrete event object based on the value of the "type" property of the JSON map.

The DefaultEventParser is used by the DefaultEventResolver to parse events from the server.

Implemented types

Constructors

DefaultEventParser.new()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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