ChatActiveStories.fromJson constructor
Parses a ChatActiveStories from TDLib JSON.
Implementation
factory ChatActiveStories.fromJson(Map<String, dynamic> json) =>
ChatActiveStories(
chatId: _readInt(json['chat_id']),
list: _readOptional(json['list'], StoryList.fromJson),
order: _readInt(json['order']),
canBeArchived: _readBool(json['can_be_archived']),
maxReadStoryId: _readInt(json['max_read_story_id']),
stories: _readList<StoryInfo>(
json['stories'],
(e) => _readObject(e, StoryInfo.fromJson),
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);