SocialGraphStats.fromJson constructor

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

Implementation

factory SocialGraphStats.fromJson(Map<String, dynamic> json) => SocialGraphStats(
      followersCount: _integer(json, 'followersCount'),
      followingCount: _integer(json, 'followingCount'),
      isFollowing: _boolean(json, 'isFollowing'),
      hasPendingFollowRequest: _boolean(json, 'hasPendingFollowRequest'),
      isPrivateAccount: _boolean(json, 'isPrivateAccount'),
    );