feat: Converted to ios models

This commit is contained in:
Deven Joshi
2021-04-13 18:20:43 +05:30
parent 391eb8c1ce
commit fe07b8dbb0
36 changed files with 406 additions and 344 deletions
@@ -25,22 +25,22 @@ class ChannelState {
final ChannelModel? channel;
/// A paginated list of channel messages
final List<Message>? messages;
final List<Message> messages;
/// A paginated list of channel members
final List<Member?>? members;
final List<Member?> members;
/// A paginated list of pinned messages
final List<Message>? pinnedMessages;
final List<Message> pinnedMessages;
/// The count of users watching the channel
final int? watcherCount;
/// A paginated list of users watching the channel
final List<User>? watchers;
final List<User> watchers;
/// The list of channel reads
final List<Read>? read;
final List<Read> read;
/// Create a new instance from a json
static ChannelState fromJson(Map<String, dynamic> json) =>