<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_enclave(cls, enclave):
 """ Create an |EnclavePermissions| object from an |Enclave| object. :param enclave: the Enclave object :return: an EnclavePermissions object """


        return EnclavePermissions(id=enclave.id,
                                  name=enclave.name,
                                  type=enclave.type)