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