Story.fromJson constructor
Implementation
factory Story.fromJson(Map<String, dynamic> json) {
return Story(
id: json['id'],
title: json['title'],
name: json['name'],
index: json['index'],
seen: json['seen'],
currentTime: json['currentTime'],
previewUrl: json['previewUrl'],
actionUrl: json['actionUrl'],
storyComponentList: castOrNull(json['storyComponentList']
?.map<StoryComponent?>((e) => getStorylyComponent(e))
.toList()),
actionProducts: List<STRProductItem>.from(
json['actionProducts'].map((x) => STRProductItem.fromJson(x))),
);
}