model/NewUsersSummary.js

  1. /**
  2. * Docusign eSignature REST API
  3. * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
  4. *
  5. * OpenAPI spec version: v2.1
  6. * Contact: devcenter@docusign.com
  7. *
  8. * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
  9. *
  10. */
  11. (function(root, factory) {
  12. if (typeof define === 'function' && define.amd) {
  13. // AMD. Register as an anonymous module.
  14. define(['ApiClient', 'model/NewUser'], factory);
  15. } else if (typeof module === 'object' && module.exports) {
  16. // CommonJS-like environments that support module.exports, like Node.
  17. module.exports = factory(require('../ApiClient'), require('./NewUser'));
  18. } else {
  19. // Browser globals (root is window)
  20. if (!root.Docusign) {
  21. root.Docusign = {};
  22. }
  23. root.Docusign.NewUsersSummary = factory(root.Docusign.ApiClient, root.Docusign.NewUser);
  24. }
  25. }(this, function(ApiClient, NewUser) {
  26. 'use strict';
  27. /**
  28. * The NewUsersSummary model module.
  29. * @module model/NewUsersSummary
  30. */
  31. /**
  32. * Constructs a new <code>NewUsersSummary</code>.
  33. * Object representing a summary of data for new users.
  34. * @alias module:model/NewUsersSummary
  35. * @class
  36. */
  37. var exports = function() {
  38. var _this = this;
  39. };
  40. /**
  41. * Constructs a <code>NewUsersSummary</code> from a plain JavaScript object, optionally creating a new instance.
  42. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  43. * @param {Object} data The plain JavaScript object bearing properties of interest.
  44. * @param {module:model/NewUsersSummary} obj Optional instance to populate.
  45. * @return {module:model/NewUsersSummary} The populated <code>NewUsersSummary</code> instance.
  46. */
  47. exports.constructFromObject = function(data, obj) {
  48. if (data) {
  49. obj = obj || new exports();
  50. if (data.hasOwnProperty('newUsers')) {
  51. obj['newUsers'] = ApiClient.convertToType(data['newUsers'], [NewUser]);
  52. }
  53. }
  54. return obj;
  55. }
  56. /**
  57. *
  58. * @member {Array.<module:model/NewUser>} newUsers
  59. */
  60. exports.prototype['newUsers'] = undefined;
  61. return exports;
  62. }));