PostureArgs.fromMap constructor

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

Implementation

factory PostureArgs.fromMap(Map<String, dynamic> map) {
  return PostureArgs(
    deletionPolicy: (() { final guardedValue = map['deletionPolicy']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    location: pulumi.Input.fromValue(map['location'] as String),
    parent: pulumi.Input.fromValue(map['parent'] as String),
    policySets: pulumi.Input.fromValue(pulumi.Input.decodeList<PosturePolicySet>(map['policySets']!, (value) => PosturePolicySet.fromMap((value as Map).cast<String, dynamic>()))),
    postureId: pulumi.Input.fromValue(map['postureId'] as String),
    state: pulumi.Input.fromValue(map['state'] as String),
  );
}