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