DeploymentConfigMinimumHealthyHosts.fromMap constructor

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

Implementation

factory DeploymentConfigMinimumHealthyHosts.fromMap(Map<String, dynamic> map) {
  return DeploymentConfigMinimumHealthyHosts(
    type: (() { final guardedValue = map['type']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    value: (() { final guardedValue = map['value']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
  );
}