User constructor

User(
  1. Map<String, dynamic> items
)

Create user from JSON map

@param items JSON map

Implementation

User(Map<String, dynamic> items) {
  id = items["id"];
  tag = items["screen_name"] ?? "loading";
  name = items["name"];
  profileUrl = items["profile_image_url_https"] ?? "";
  backgroundUrl = items["profile_banner_url"] ?? "";
  quote = items["description"];
  tweetCount = items["statuses_count"] ?? 0;
  followerCount = items["followers_count"];
  followingCount = items["friends_count"];
}