Source: field-dto.js

/**
 *
 */
class FieldDTO {
  constructor (json) {
    /** @private */
    this.json = json
  }

  /**
   * @type {number}
   */
  get display () {
    return this.json.display || this.json.name
  }

  /**
   * @type {string}
   */
  get fieldType () {
    return this.json.fieldType
  }

  /**
   * @type {boolean}
   */
  get global () {
    return this.json.global
  }

  /**
   * @type {string}
   */
  get name () {
    return this.json.name
  }
}

export default FieldDTO