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