TargetTrackingScalingPolicyConfiguration.fromJson constructor
TargetTrackingScalingPolicyConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TargetTrackingScalingPolicyConfiguration.fromJson(
Map<String, dynamic> json) {
return TargetTrackingScalingPolicyConfiguration(
targetValue: json['TargetValue'] as double,
customizedMetricSpecification:
json['CustomizedMetricSpecification'] != null
? CustomizedMetricSpecification.fromJson(
json['CustomizedMetricSpecification'] as Map<String, dynamic>)
: null,
disableScaleIn: json['DisableScaleIn'] as bool?,
predefinedMetricSpecification:
json['PredefinedMetricSpecification'] != null
? PredefinedMetricSpecification.fromJson(
json['PredefinedMetricSpecification'] as Map<String, dynamic>)
: null,
scaleInCooldown: json['ScaleInCooldown'] as int?,
scaleOutCooldown: json['ScaleOutCooldown'] as int?,
);
}