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;
}
if (group != null) {
json[r'group'] = group;
}
return json;
}