fromJson static method
Implementation
static ChatActiveStories? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ChatActiveStories(
chatId: (json['chat_id'] as int?) ?? 0,
list: StoryList.fromJson(tdMapFromJson(json['list'])),
order: (json['order'] as int?) ?? 0,
canBeArchived: (json['can_be_archived'] as bool?) ?? false,
maxReadStoryId: (json['max_read_story_id'] as int?) ?? 0,
stories: List<StoryInfo>.from(
tdListFromJson(json['stories'])
.map((item) => StoryInfo.fromJson(tdMapFromJson(item)))
.whereType<StoryInfo>(),
),
);
}