RolePolicyAttachmentState.fromMap constructor

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

Implementation

factory RolePolicyAttachmentState.fromMap(Map<String, dynamic> map) {
  return RolePolicyAttachmentState(
    policyArn: (() { final guardedValue = map['policyArn']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    role: (() { final guardedValue = map['role']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue); })(),
  );
}