GiphyUser.fromJson constructor

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

Implementation

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