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