toJson method
Implementation
Map<String, Object?> toJson() {
var user = this.user;
var group = this.group;
final json = <String, Object?>{};
if (user != null) {
json[r'user'] = user.toJson();
}
if (group != null) {
json[r'group'] = group.toJson();
}
return json;
}