Manual Reference Source Test

src/helpers/sso/SsoOption.js

import SsoOptionModel from '../../models/sso/SsoOption';
import Helper from '../Helper';
import { aggregate } from '../../utilities/ClassUtility';

/**
 * Helper class representing an SSO Option.
 *
 * @extends {SsoOptionModel}
 * @extends {Helper}
 *
 * @example
 * // To get a list of ConsentStrategies use clinical6.get
 * import { clinical6, SsoOption } from 'clinical6';
 * clinical6.get(SsoOption).then(c => console.log(c));
 *
 * // To get a single SsoOption, you can also use clinical6
 * clinical6.get({ id: 5, type: 'saml_configurations'});
 *
*/
class SsoOption extends aggregate(SsoOptionModel, Helper) {
  /**
   * Constructor for helper class representing a Consent Strategy
   *
   * @param {Object} json - json api response from server
   */
  constructor(json = {}) {
    super(json);
    this.deserializeRelationshipStubs(json);
    this.syncRelationships(json);
  }

  /** @type {String}  - The type */
  static get type() {
    return 'sso_options';
  }
}

export default SsoOption;