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