Group.fromJSON constructor
Implementation
Group.fromJSON(Map<String, dynamic> json)
: id = json['id'],
title = json['title'],
description = json['description'],
avatarUrl = json['avatarUrl'],
createdAt = json['createdAt'],
updatedAt = json['updatedAt'],
settings = CommunitiesSettings.fromJSON(json['settings']),
followersCount = json['followersCount'],
membersCount = json['membersCount'],
isFollowedByMe = json['isFollowedByMe'] == true,
membership = json['membership'] == null
? null
: Membership.fromJSON(json['membership']),
popularity =
json['popularity'] == null ? 0 : json['popularity'].toDouble();