User.fromJson constructor

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

Implementation

factory User.fromJson(Map<String, dynamic> json) => new User(
      id: json["id"] == null ? null : json["id"].toDouble(),
      name: json["name"] == null ? null : json["name"],
      screenName: json["screen_name"] == null ? null : json["screen_name"],
      verified: json["verified"] == null ? null : json["verified"],
      profileImageUrlHttps: json["profile_image_url_https"] == null
          ? null
          : json["profile_image_url_https"],
    );