ChannelResponse class

Constructors

ChannelResponse({bool? autoTranslationEnabled, String? autoTranslationLanguage, bool? blocked, required String cid, ChannelConfigWithInfo? config, int? cooldown, required DateTime createdAt, UserObject? createdBy, Map<String, Object> custom = const {}, DateTime? deletedAt, required bool disabled, required bool frozen, bool? hidden, DateTime? hideMessagesBefore, required String id, DateTime? lastMessageAt, int? memberCount, List<ChannelMember> members = const [], DateTime? muteExpiresAt, bool? muted, List<String> ownCapabilities = const [], String? team, DateTime? truncatedAt, UserObject? truncatedBy, required String type, required DateTime updatedAt})
Returns a new ChannelResponse instance.

Properties

autoTranslationEnabled bool?
Whether auto translation is enabled or not
getter/setter pair
autoTranslationLanguage String?
Language to translate to when auto translation is active
getter/setter pair
blocked bool?
Whether this channel is blocked by current user or not
getter/setter pair
cid String
Channel CID (
getter/setter pair
config ChannelConfigWithInfo?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
cooldown int?
Cooldown period after sending each message
getter/setter pair
createdAt DateTime
Date/time of creation
getter/setter pair
createdBy UserObject?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
custom Map<String, Object>
getter/setter pair
deletedAt DateTime?
Date/time of deletion
getter/setter pair
disabled bool
getter/setter pair
frozen bool
Whether channel is frozen or not
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hidden bool?
Whether this channel is hidden by current user or not
getter/setter pair
hideMessagesBefore DateTime?
Date since when the message history is accessible
getter/setter pair
id String
Channel unique ID
getter/setter pair
lastMessageAt DateTime?
Date of the last message sent
getter/setter pair
memberCount int?
Number of members in the channel
getter/setter pair
members List<ChannelMember>
List of channel members (max 100)
getter/setter pair
muted bool?
Whether this channel is muted or not
getter/setter pair
muteExpiresAt DateTime?
Date of mute expiration
getter/setter pair
ownCapabilities List<String>
List of channel capabilities of authenticated user
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
team String?
Team the channel belongs to (multi-tenant only)
getter/setter pair
truncatedAt DateTime?
Date of the latest truncation of the channel
getter/setter pair
truncatedBy UserObject?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
type String
Type of the channel
getter/setter pair
updatedAt DateTime
Date/time of the last update
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) ChannelResponse?
Returns a new ChannelResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<ChannelResponse>
mapFromJson(dynamic json) Map<String, ChannelResponse>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<ChannelResponse>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.