toJson method
Implementation
Map<String, Object?> toJson() {
var users = this.users;
var groups = this.groups;
final json = <String, Object?>{};
json[r'users'] = users.map((i) => i.toJson()).toList();
json[r'groups'] = groups.map((i) => i.toJson()).toList();
return json;
}