GoogleCloudSecuritycenterV1CustomConfig.fromMap constructor

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

Implementation

factory GoogleCloudSecuritycenterV1CustomConfig.fromMap(Map<String, dynamic> map) {
  return GoogleCloudSecuritycenterV1CustomConfig(
    customOutput: (() { final guardedValue = map['customOutput']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudSecuritycenterV1CustomOutputSpec.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    predicate: (() { final guardedValue = map['predicate']; if (guardedValue == null) return null; return pulumi.Input.fromValue(Expr.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    recommendation: (() { final guardedValue = map['recommendation']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    resourceSelector: (() { final guardedValue = map['resourceSelector']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudSecuritycenterV1ResourceSelector.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    severity: (() { final guardedValue = map['severity']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudSecuritycenterV1CustomConfigSeverity.fromValue(guardedValue as String)); })(),
  );
}