checkAllowedProperties(object, allowedProperties) {
    if (
      typeof object !== "object" ||
      Array.isArray(object) ||
      object === null
    ) {
      return false;
    }

    return !Object.keys(object).some(
      (propertyName) => allowedProperties.indexOf(propertyName) === -1,
    );
  }
@param {*} object
@param {string[]} allowedProperties
@returns {boolean}