AutoScalingPolicyDescription.fromJson constructor

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

Implementation

factory AutoScalingPolicyDescription.fromJson(Map<String, dynamic> json) {
  return AutoScalingPolicyDescription(
    policyName: json['PolicyName'] as String?,
    targetTrackingScalingPolicyConfiguration:
        json['TargetTrackingScalingPolicyConfiguration'] != null
            ? AutoScalingTargetTrackingScalingPolicyConfigurationDescription
                .fromJson(json['TargetTrackingScalingPolicyConfiguration']
                    as Map<String, dynamic>)
            : null,
  );
}