factory StoryComponent.fromJson(Map<String, dynamic> json) { return StoryComponent(json['type'], json['id']); }