Message class

Annotations

Constructors

Message({required PayloadType type, required String payload, String? responseToken})
const
Message.fromJson(Map map)
Use to restore Message from json
factory

Properties

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

Methods

copyWith({PayloadType? type, String? payload, String? responseToken}) Message
Use this to get modified message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, String?>
Use to encode Message to json
toString() String
A string representation of this object.
override

Operators

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