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 ..receivable.media import Location
          from ..receivable.peer import User
  
          data = {}
          data['result_id'] = u(array.get('result_id'))
          data['from_peer'] = User.from_array(array.get('from'))
          data['query'] = u(array.get('query'))
          data['location'] = Location.from_array(array.get('location')) if array.get('location') is not None else None
          data['inline_message_id'] = u(array.get('inline_message_id')) if array.get('inline_message_id') is not None else None
          data['_raw'] = array
          return ChosenInlineResult(**data)
docs: Deserialize a new ChosenInlineResult from a given dictionary.
  
          :return: new ChosenInlineResult instance.
          :rtype: ChosenInlineResult