Manual Reference Source Test

src/models/consent/ApproverGroupAssignment.js

/**
 * Model representing a Consent Approver Group Assignment.
 */
class ApproverGroupAssignmentModel {
  /**
   * @param {Object}  response            - JSON formatted response of a consent approver group assignment.
   * @param {Number}  response.id         - The user role ID value
   */
  constructor(response = {}) {
    const _response = response.data || response; // if json api is passed in directly

    if (_response.id) {
      /** @type {Number} */
      this.id = parseInt(_response.id, 10);
    }
  }
}

export default ApproverGroupAssignmentModel;