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