/** * @typedef DeviceResultDTO * @property {string} display * @property {string} message * @property {Object<string, any>} raw * @property {string} transcript */ class DeviceResponseDTO { /** * * @param {any} json */ constructor (json) { this.json = json } /** * @type {string} */ get conversationID () { return this.json.conversationID } /** * @type {DeviceResultDTO[]} */ get results () { return this.json.results } /** * * @returns {any} */ toJSON () { return this.json } } export default DeviceResponseDTO