toJSON method
Implementation
Map<String, dynamic> toJSON() => {
'avatar': avatar?.toJSON(),
'description': description,
'id': id,
'isDiscoverable': isDiscoverable,
'isPrivate': isPrivate,
'labels': labels,
'permissions': permissions.map((key, value) =>
MapEntry(CommunitiesAction.valueToName(key), value)),
'properties': properties,
'title': title,
};