GiphyUser.fromJson constructor

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

Creates a new user from json

Implementation

factory GiphyUser.fromJson(Map<String, dynamic> json) => GiphyUser(
      avatarUrl: json['avatar_url'],
      bannerUrl: json['banner_url'],
      profileUrl: json['profile_url'],
      username: json['username'],
      displayName: json['display_name'],
      guid: json['guid'],
      metadataDescription: json['metadata_description'],
      attributionDisplayName: json['attribution_display_name'],
      name: json['name'],
      description: json['description'],
      facebookUrl: json['facebook_url'],
      twitter: json['twitter'],
      twitterUrl: json['twitter_url'],
      instagramUrl: json['instagram_url'],
      tumblrUrl: json['tumblr_url'],
      suppressChrome: json['suppress_chrome'],
      websiteUrl: json['website_url'],
      websiteDisplayUrl: json['website_display_url'],
    );