ManagedScaling.fromJson constructor

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

Implementation

factory ManagedScaling.fromJson(Map<String, dynamic> json) {
  return ManagedScaling(
    instanceWarmupPeriod: json['instanceWarmupPeriod'] as int?,
    maximumScalingStepSize: json['maximumScalingStepSize'] as int?,
    minimumScalingStepSize: json['minimumScalingStepSize'] as int?,
    status: (json['status'] as String?)?.toManagedScalingStatus(),
    targetCapacity: json['targetCapacity'] as int?,
  );
}