serialize(params) {
    return _.toPairs(params).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`).join('&');
  }
@private
@param {object} params - The parameters to serialize.
@returns {string} The serialized parameters.