Label.fromJSON constructor

Label.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

Label.fromJSON(Map<String, dynamic> json)
    : name = json['name'],
      followersCount = json['followersCount'],
      activitiesCount = json['activitiesCount'],
      isFollowedByMe = json['isFollowedByMe'],
      popularity =
          json['popularity'] == null ? 0 : json['popularity'].toDouble();