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