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.peer import User
  
          data = {}
          data['position'] = int(array.get('position'))
          data['user'] = User.from_array(array.get('user'))
          data['score'] = int(array.get('score'))
          data['_raw'] = array
          return GameHighScore(**data)
docs: Deserialize a new GameHighScore from a given dictionary.
  
          :return: new GameHighScore instance.
          :rtype: GameHighScore