core.Map<core.String, core.dynamic> toJson() => { if (groupIds != null) 'groupIds': groupIds!, if (id != null) 'id': id!, };