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