AutoScalingGroupProvider.fromJson constructor

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

Implementation

factory AutoScalingGroupProvider.fromJson(Map<String, dynamic> json) {
  return AutoScalingGroupProvider(
    autoScalingGroupArn: json['autoScalingGroupArn'] as String,
    managedScaling: json['managedScaling'] != null
        ? ManagedScaling.fromJson(
            json['managedScaling'] as Map<String, dynamic>)
        : null,
    managedTerminationProtection:
        (json['managedTerminationProtection'] as String?)
            ?.toManagedTerminationProtection(),
  );
}