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