code: def to_array(self):
          
          array = super(Contact, self).to_array()
          array['phone_number'] = u(self.phone_number)  # py2: type unicode, py3: type str
  
          array['first_name'] = u(self.first_name)  # py2: type unicode, py3: type str
  
          if self.last_name is not None:
              array['last_name'] = u(self.last_name)  # py2: type unicode, py3: type str
  
          if self.user_id is not None:
              array['user_id'] = int(self.user_id)  # type int
          if self.vcard is not None:
              array['vcard'] = u(self.vcard)  # py2: type unicode, py3: type str
  
          return array
docs: Serializes this Contact to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict