toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (coolDownPeriodSec != null) 'coolDownPeriodSec': coolDownPeriodSec!,
      if (cpuUtilization != null) 'cpuUtilization': cpuUtilization!,
      if (customMetricUtilizations != null)
        'customMetricUtilizations': customMetricUtilizations!,
      if (loadBalancingUtilization != null)
        'loadBalancingUtilization': loadBalancingUtilization!,
      if (maxNumReplicas != null) 'maxNumReplicas': maxNumReplicas!,
      if (minNumReplicas != null) 'minNumReplicas': minNumReplicas!,
      if (mode != null) 'mode': mode!,
      if (scaleInControl != null) 'scaleInControl': scaleInControl!,
      if (scalingSchedules != null) 'scalingSchedules': scalingSchedules!,
    };