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