convertByDataType(value) {
    const dataType = this.component.dataType || 'auto';
    if (value === this.emptyValue) {
      return value;
    }

    switch (dataType) {
      case 'auto':
        if (!isNaN(parseFloat(value)) && isFinite(value) && _.toString(value) === Number(value).toString()) {
          value = +value;
        }
        if (value === 'true') {
          value = true;
        }
        if (value === 'false') {
          value = false;
        }
        break;
      case 'number':
        value = +value;
        break;
      case 'string':
        if (typeof value === 'object') {
          value = JSON.stringify(value);
        }
        else {
          value = String(value);
        }
        break;
      case 'boolean':
        value = !(!value || value.toString() === 'false');
        break;
      }

      return value;
  }
Normalize values coming into updateValue. For example, depending on the configuration, string value `"true"` will be normalized to boolean `true`.
@param {*} value - The value to normalize
@returns {*} - Returns the normalized value