SecurityPostureConfig.fromMap constructor

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

Implementation

factory SecurityPostureConfig.fromMap(Map<String, dynamic> map) {
  return SecurityPostureConfig(
    mode: (() { final guardedValue = map['mode']; if (guardedValue == null) return null; return pulumi.Input.fromValue(SecurityPostureConfigMode.fromValue(guardedValue as String)); })(),
    vulnerabilityMode: (() { final guardedValue = map['vulnerabilityMode']; if (guardedValue == null) return null; return pulumi.Input.fromValue(SecurityPostureConfigVulnerabilityMode.fromValue(guardedValue as String)); })(),
  );
}