ChannelUsers.fromJson constructor
ChannelUsers.fromJson(
- Map<String, dynamic> json
)
Implementation
ChannelUsers.fromJson(Map<String, dynamic> json) {
userId = json['userId'];
channelId = json['channelId'];
membership = json['membership'];
isBanned = json['isBanned'];
lastActivity = json['lastActivity'];
roles = json['roles'].cast<String>();
permissions = json['permissions'].cast<String>();
readToSegment = json['readToSegment'];
lastMentionedSegment = json['lastMentionedSegment'];
isMuted = json['isMuted'];
muteTimeout = json['muteTimeout'];
createdAt = json['createdAt'];
updatedAt = json['updatedAt'];
}