Collection.fromJson constructor

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

Implementation

Collection.fromJson(Map<String, dynamic> json)
    : context = json["@context"],
      summary = json["summary"],
      type = json["type"],
      totalItems = json["totalItems"],
      items = generatePosts(json["items"]);