Story.fromJson constructor

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

Implementation

factory Story.fromJson(Map<String, dynamic> json) => Story(
      title: json["title"],
      subTitle: json["subTitle"],
      tag: json["tag"],
      thumbnailImageId: json["thumbnailImageId"],
      slides: List<Slide>.from(json["slides"].map((x) => Slide.fromJson(x))),
      thumbnailImageUrl: json["thumbnailImageUrl"],
    );