Channel class

Annotations
  • @freezed

Constructors

Channel({required int id, required String name, required String uuid, required String state, @JsonKey(name: 'is_minimized') required bool isMinimized, @JsonKey(name: 'channel_type') required String channelType, @JsonKey(name: 'group_based_subscription') required bool groupBasedSubscription, @JsonKey(name: 'create_uid') required int createUid, @JsonKey(name: 'message_needaction_counter') required int messageNeedactionCounter, @JsonKey(name: 'message_unread_counter') required int messageUnreadCounter, @JsonKey(name: 'is_pinned') required bool isPinned, @JsonKey(name: 'last_message_id', fromJson: Channel.parseIntNullable) int? lastMessageId, @JsonKey(name: 'seen_message_id', fromJson: Channel.parseIntNullable) int? seenMessageId})
const
factory
Channel.fromJson(Map<String, dynamic> json)
factory

Properties

channelType String
no setterinherited
copyWith → $ChannelCopyWith<Channel>
no setterinherited
createUid int
no setterinherited
groupBasedSubscription bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
no setterinherited
isMinimized bool
no setterinherited
isPinned bool
no setterinherited
lastMessageId int?
no setterinherited
messageNeedactionCounter int
no setterinherited
messageUnreadCounter int
no setterinherited
name String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenMessageId int?
no setterinherited
state String
no setterinherited
uuid String
no setterinherited

Methods

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

Operators

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

Static Methods

parseIntNullable(dynamic value) int?