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