src/models/consent/ApproverAssignment.js
/**
* Model representing a Consent Approver Assignment.
*/
class ApproverAssignmentModel {
/**
* @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 ApproverAssignmentModel;