User.fromJson constructor

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

from json

Implementation

factory User.fromJson(Map<String, dynamic> json) => User(
      biography: json["biography"] == null ? null : json["biography"],
      externalUrl: json["external_url"] == null ? null : json["external_url"],
      externalUrlLinkshimmed: json["external_url_linkshimmed"] == null
          ? null
          : json["external_url_linkshimmed"],
      edgeFollowedBy: json["edge_followed_by"] == null
          ? null
          : Edge.fromJson(json["edge_followed_by"]),
      followedByViewer: json["followed_by_viewer"] == null
          ? null
          : json["followed_by_viewer"],
      edgeFollow: json["edge_follow"] == null
          ? null
          : Edge.fromJson(json["edge_follow"]),
      fullName: json["full_name"] == null ? null : json["full_name"],
      id: json["id"] == null ? null : json["id"],
      isBusinessAccount: json["is_business_account"] == null
          ? null
          : json["is_business_account"],
      isJoinedRecently: json["is_joined_recently"] == null
          ? null
          : json["is_joined_recently"],
      isPrivate: json["is_private"] == null ? null : json["is_private"],
      isVerified: json["is_verified"] == null ? null : json["is_verified"],
      profilePicUrl:
          json["profile_pic_url"] == null ? null : json["profile_pic_url"],
      profilePicUrlHd: json["profile_pic_url_hd"] == null
          ? null
          : json["profile_pic_url_hd"],
      requestedByViewer: json["requested_by_viewer"] == null
          ? null
          : json["requested_by_viewer"],
      username: json["username"] == null ? null : json["username"],
      edgeOwnerToTimelineMedia: json["edge_owner_to_timeline_media"] == null
          ? null
          : EdgeOwnerToTimelineMedia.fromJson(
              json["edge_owner_to_timeline_media"]),
    );