toJson method
Converts a HPAScalingPolicy instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempPeriodSeconds = periodSeconds;
final tempType = type;
final tempValue = value;
jsonData['periodSeconds'] = tempPeriodSeconds;
jsonData['type'] = tempType;
jsonData['value'] = tempValue;
return jsonData;
}