toJson method
Generates a map representing the Group
.
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['guid'] = guid;
map['name'] = name;
map['icon'] = icon;
map['description'] = description;
map['membersCount'] = membersCount;
map['metadata'] = metadata;
map['joinedAt'] = joinedAt == null ? 0 : joinedAt?.millisecondsSinceEpoch;
map['hasJoined'] = hasJoined;
map['createdAt'] =
createdAt == null ? 0 : createdAt?.millisecondsSinceEpoch;
map['owner'] = owner;
map['updatedAt'] =
updatedAt == null ? 0 : updatedAt?.millisecondsSinceEpoch;
map['tags'] = tags;
map['type'] = type;
map['scope'] = scope;
map['password'] = password;
map['isBannedFromGroup'] = isBannedFromGroup;
return map;
}