ChannelData class

Constructors

ChannelData.new({required String userId, dynamic userInfo = false})
const
ChannelData.fromJson(Map json)
Creates a new instance from a json map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
The user id of the channel data.
final
userInfo → dynamic
The user info of the channel data.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the instance to a json map.
toJsonString() String
Converts the instance to a json string.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJsonString(String jsonString) ChannelData?
Creates a new instance from a json string.