EventChannel class

The channel embedded in the event object

Inheritance
Annotations

Constructors

EventChannel({List<Member> members, String id, String type, String cid, ChannelConfig config, User createdBy, bool frozen, DateTime lastMessageAt, DateTime createdAt, DateTime updatedAt, DateTime deletedAt, int memberCount, Map<String, dynamic> extraData})
Constructor used for json serialization
EventChannel.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

cid String
The cid of this channel
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
config ChannelConfig
The channel configuration data
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
createdAt DateTime
The date of channel creation
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
createdBy User
The user that created this channel
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
deletedAt DateTime
The date of channel deletion
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
extraData Map<String, dynamic>
Map of custom channel extraData
@JsonKey(includeIfNull: false), final, inherited
frozen bool
True if this channel is frozen
@JsonKey(includeIfNull: false), final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The id of this channel
final, inherited
lastMessageAt DateTime
The date of the last message
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
memberCount int
The count of this channel members
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
members List<Member>
A paginated list of channel members
final
name String
Shortcut for channel name
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
The type of this channel
final, inherited
updatedAt DateTime
The date of the last channel update
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited

Methods

copyWith({String id, String type, String cid, ChannelConfig config, User createdBy, bool frozen, DateTime lastMessageAt, DateTime createdAt, DateTime updatedAt, DateTime deletedAt, int memberCount, Map<String, dynamic> extraData}) ChannelModel
Creates a copy of ChannelModel with specified attributes overridden.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Serialize to json
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Properties

topLevelFields List<String>
Known top level fields. Useful for Serialization methods.
final