code: def to_array(self):
          
          array = super(EncryptedPassportElement, self).to_array()
          array['type'] = u(self.type)  # py2: type unicode, py3: type str
  
          array['hash'] = u(self.hash)  # py2: type unicode, py3: type str
  
          if self.data is not None:
              array['data'] = u(self.data)  # py2: type unicode, py3: type str
          if self.phone_number is not None:
              array['phone_number'] = u(self.phone_number)  # py2: type unicode, py3: type str
          if self.email is not None:
              array['email'] = u(self.email)  # py2: type unicode, py3: type str
          if self.files is not None:
              array['files'] = self._as_array(self.files)  # type list of PassportFile
          if self.front_side is not None:
              array['front_side'] = self.front_side.to_array()  # type PassportFile
          if self.reverse_side is not None:
              array['reverse_side'] = self.reverse_side.to_array()  # type PassportFile
          if self.selfie is not None:
              array['selfie'] = self.selfie.to_array()  # type PassportFile
          if self.translation is not None:
              array['translation'] = self._as_array(self.translation)  # type list of PassportFile
          return array
docs: Serializes this EncryptedPassportElement to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict