AutoScalingThresholds.fromJson constructor

AutoScalingThresholds.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AutoScalingThresholds.fromJson(Map<String, dynamic> json) {
  return AutoScalingThresholds(
    alarms: (json['Alarms'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    cpuThreshold: json['CpuThreshold'] as double?,
    ignoreMetricsTime: json['IgnoreMetricsTime'] as int?,
    instanceCount: json['InstanceCount'] as int?,
    loadThreshold: json['LoadThreshold'] as double?,
    memoryThreshold: json['MemoryThreshold'] as double?,
    thresholdsWaitTime: json['ThresholdsWaitTime'] as int?,
  );
}