code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
          from pytgbot.api_types.receivable.passport import PassportFile
          
  
          data = {}
          data['type'] = u(array.get('type'))
          data['hash'] = u(array.get('hash'))
          data['data'] = u(array.get('data')) if array.get('data') is not None else None
          data['phone_number'] = u(array.get('phone_number')) if array.get('phone_number') is not None else None
          data['email'] = u(array.get('email')) if array.get('email') is not None else None
          data['files'] = PassportFile.from_array_list(array.get('files'), list_level=1) if array.get('files') is not None else None
          data['front_side'] = PassportFile.from_array(array.get('front_side')) if array.get('front_side') is not None else None
          data['reverse_side'] = PassportFile.from_array(array.get('reverse_side')) if array.get('reverse_side') is not None else None
          data['selfie'] = PassportFile.from_array(array.get('selfie')) if array.get('selfie') is not None else None
          data['translation'] = PassportFile.from_array_list(array.get('translation'), list_level=1) if array.get('translation') is not None else None
          data['_raw'] = array
          return EncryptedPassportElement(**data)
docs: Deserialize a new EncryptedPassportElement from a given dictionary.
  
          :return: new EncryptedPassportElement instance.
          :rtype: EncryptedPassportElement