Story.fromJson constructor

Story.fromJson(
  1. dynamic json
)

Implementation

factory Story.fromJson(json) => Story(
      id: json['id'],
      deleted: json['deleted'] ?? false,
      type: json['type'],
      by: json["by"],
      time: json["time"],
      dead: json["dead"] ?? false,
      descendants: json["descendants"] ?? 0,
      score: json["score"],
      title: json["title"],
      url: json["url"] ?? 'null',
      kids: json["kids"]?.cast<int>() ?? [],
    );