Source: conversation-dto.js

/**
 * @typedef IConversation
 * @property {string} id
 * @property {string} [runID]
 * @property {string} [testRunID]
 * 
 * @implements IConversation
 */
class ConversationDTO {
  /**
   * 
   * @param {any} json 
   */
  constructor (json) {
    this.json = json
  }

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

  /**
   * @type {string | undefined}
   */
  get runID () {
    return this.json.runID
  }

  get testRunID () {
    return this.json.testRunID
  }

  toJSON() {
    return this.json
  }
}

export default ConversationDTO