StoryGroup.fromJson constructor
StoryGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StoryGroup.fromJson(Map<String, dynamic> json) {
return StoryGroup(
seen: json['seen'],
title: json['title'],
index: json['index'],
iconUrl: json['iconUrl'],
stories: List<Story>.from(json['stories'].map((x) => Story.fromJson(x))),
id: json['id'],
thematicIconUrls: json['thematicIconUrls'] != null
? Map<String, String>.from(json['thematicIconUrls'])
: null,
coverUrl: json['coverUrl'],
pinned: json['pinned'],
type: json['type'],
nudge: json['nudge'],
);
}