PutScalingPolicyResponse.fromJson constructor

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

Implementation

factory PutScalingPolicyResponse.fromJson(Map<String, dynamic> json) {
  return PutScalingPolicyResponse(
    policyARN: json['PolicyARN'] as String,
    alarms: (json['Alarms'] as List?)
        ?.whereNotNull()
        .map((e) => Alarm.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}