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