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