EdgeOwnerToTimelineMedia.fromJson constructor

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

from json

Implementation

factory EdgeOwnerToTimelineMedia.fromJson(Map<String, dynamic> json) =>
    EdgeOwnerToTimelineMedia(
      count: json["count"] == null ? null : json["count"],
      pageInfo: json["page_info"] == null
          ? null
          : PageInfo.fromJson(json["page_info"]),
      edges: json["edges"] == null
          ? null
          : List<EdgeOwnerToTimelineMediaEdge>.from(json["edges"]
              .map((x) => EdgeOwnerToTimelineMediaEdge.fromJson(x))),
    );