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