PurpleNode.fromJson constructor
from json
Implementation
factory PurpleNode.fromJson(Map<String, dynamic> json) => PurpleNode(
typename: json["__typename"] == null ? null : json["__typename"],
id: json["id"] == null ? null : json["id"],
shortcode: json["shortcode"] == null ? null : json["shortcode"],
dimensions: json["dimensions"] == null
? null
: Dimensions.fromJson(json["dimensions"]),
displayUrl: json["display_url"] == null ? null : json["display_url"],
owner: json["owner"] == null ? null : Owner.fromJson(json["owner"]),
isVideo: json["is_video"] == null ? null : json["is_video"],
accessibilityCaption: json["accessibility_caption"] == null
? null
: json["accessibility_caption"],
edgeMediaToCaption: json["edge_media_to_caption"] == null
? null
: EdgeMediaToCaption.fromJson(json["edge_media_to_caption"]),
edgeMediaToComment: json["edge_media_to_comment"] == null
? null
: Edge.fromJson(json["edge_media_to_comment"]),
commentsDisabled: json["comments_disabled"] == null
? null
: json["comments_disabled"],
takenAtTimestamp: json["taken_at_timestamp"] == null
? null
: json["taken_at_timestamp"],
edgeLikedBy: json["edge_liked_by"] == null
? null
: Edge.fromJson(json["edge_liked_by"]),
edgeMediaPreviewLike: json["edge_media_preview_like"] == null
? null
: Edge.fromJson(json["edge_media_preview_like"]),
edgeSidecarToChildren: json["edge_sidecar_to_children"] == null
? null
: EdgeSidecarToChildren.fromJson(json["edge_sidecar_to_children"]),
);