'use strict';

const BaseField = require('./BaseField-381327a9.js');

class RawDataField extends BaseField.BaseField {
  constructor(id, title, description, dataType = 'json') {
    super(id, 'raw-data');
    this.dataType = 'json';
    this.trimStringQuotes = false;
    this.id = id;
    this.title = title;
    this.description = description;
    this.dataType = dataType;
  }
  showPreview() {
    this.preview = true;
    return this;
  }
  getDisplayValue(value) {
    return value;
  }
  setDataType(dataType) {
    this.dataType = dataType;
    return this;
  }
  setTrimStringQuotes(shouldTrim) {
    this.trimStringQuotes = shouldTrim;
    return this;
  }
}
RawDataField.type = 'raw-data';

exports.RawDataField = RawDataField;
