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