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