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