HPAScalingPolicy.fromJson constructor
Creates a HPAScalingPolicy from JSON data.
Implementation
factory HPAScalingPolicy.fromJson(Map<String, dynamic> json) {
final tempPeriodSecondsJson = json['periodSeconds'];
final tempTypeJson = json['type'];
final tempValueJson = json['value'];
final int tempPeriodSeconds = tempPeriodSecondsJson;
final String tempType = tempTypeJson;
final int tempValue = tempValueJson;
return HPAScalingPolicy(
periodSeconds: tempPeriodSeconds,
type: tempType,
value: tempValue,
);
}