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