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