CommunitiesEntity.fromJSON constructor

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

Implementation

CommunitiesEntity.fromJSON(Map<String, dynamic> json)
    : id = json['id'],
      type = json['type'],
      title = json['title'],
      avatarUrl = json['avatarUrl'],
      followersCount = json['followersCount'],
      isFollowedByMe = json['isFollower'] ?? false,
      allowedActions = Utils.createIntBoolMap(json['availableActions']);