Participants.fromJson constructor
Implementation
factory Participants.fromJson(Map<String, dynamic> json) {
return Participants(
groups: (json['Groups'] as List?)
?.whereNotNull()
.map((e) => GroupMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
users: (json['Users'] as List?)
?.whereNotNull()
.map((e) => UserMetadata.fromJson(e as Map<String, dynamic>))
.toList(),
);
}