StoryComponent.fromJson constructor Null safety

StoryComponent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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