MetastoreServiceScalingConfig.fromMap constructor
MetastoreServiceScalingConfig.fromMap(
- Map<String, dynamic> map
)
Implementation
factory MetastoreServiceScalingConfig.fromMap(Map<String, dynamic> map) {
return MetastoreServiceScalingConfig(
autoscalingConfig: (() { final guardedValue = map['autoscalingConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(MetastoreServiceScalingConfigAutoscalingConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
instanceSize: (() { final guardedValue = map['instanceSize']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
scalingFactor: (() { final guardedValue = map['scalingFactor']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toDouble()); })(),
);
}