ClusterAutopilotClusterPolicyConfig.fromMap constructor

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

Implementation

factory ClusterAutopilotClusterPolicyConfig.fromMap(Map<String, dynamic> map) {
  return ClusterAutopilotClusterPolicyConfig(
    noStandardNodePools: (() { final guardedValue = map['noStandardNodePools']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    noSystemImpersonation: (() { final guardedValue = map['noSystemImpersonation']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    noSystemMutation: (() { final guardedValue = map['noSystemMutation']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    noUnsafeWebhooks: (() { final guardedValue = map['noUnsafeWebhooks']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
  );
}