Manual Reference Source Test

src/models/VuforiaTarget.js

import { deprecate } from 'core-decorators';
/**
 * @deprecated
 *
 * Model representing a Vuforia Target.
 */
class VuforiaTargetModel {
  /**
   * @param {Object} response             - JSON formatted default response of a dynamic content
   * @param {String} response.vuforia_id  - The vuforia ID value
   * @param {String} response.name        - The name of the Vuforia target
   * @param {Object} response.image       - The image values associated with the vuforia target
   * @param {String} response.mp4_video   - MP4 video associated with the vuforia target
   * @param {Array}  response.callbacks   - Callback data of the vuforia target.
   */

  constructor(response = {}) {
    Object.assign(this, response);
  }

  /** @type {String} */
  get vuforiaId() {
    return this.vuforia_id;
  }

  /** @type {String} */
  get vuforiaTargetName() {
    return this.name;
  }

  /**
   * Sets the value based on a key
   * @param {String} key - Key of the item to store
   * @param {Any} value - Value of the item to store
   */
  @deprecate
  set(key, value) {
    /** @type {Any} */
    this[key] = value;
  }

  /**
   * Gets the value based on a key
   * @param {String} key - Key of the item to store
   * @return {Any} - Value of the stored item
   */
  @deprecate
  get(key) {
    return this[key];
  }
}

export default VuforiaTargetModel;