MetastoreServiceScalingConfigAutoscalingConfig.fromMap constructor

MetastoreServiceScalingConfigAutoscalingConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory MetastoreServiceScalingConfigAutoscalingConfig.fromMap(Map<String, dynamic> map) {
  return MetastoreServiceScalingConfigAutoscalingConfig(
    autoscalingEnabled: (() { final guardedValue = map['autoscalingEnabled']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    autoscalingFactor: (() { final guardedValue = map['autoscalingFactor']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toDouble()); })(),
    limitConfig: (() { final guardedValue = map['limitConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(MetastoreServiceScalingConfigAutoscalingConfigLimitConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}