text: /**
   * GitHub
   * Powerful collaboration, code review, and code management for open source and private projects. 
   *
   * The version of the OpenAPI document: v3
   * 
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   *
   */
  
  import ApiClient from '../ApiClient';
  
  /**
   * The OrgTeamsPost model module.
   * @module model/OrgTeamsPost
   * @version 1.4.6
   */
  class OrgTeamsPost {
      /**
       * Constructs a new <code>OrgTeamsPost</code>.
       * @alias module:model/OrgTeamsPost
       * @param name {String} 
       */
      constructor(name) { 
          
          OrgTeamsPost.initialize(this, name);
      }
  
      /**
       * Initializes the fields of this object.
       * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
       * Only for internal use.
       */
      static initialize(obj, name) { 
          obj['name'] = name;
      }
  
      /**
       * Constructs a <code>OrgTeamsPost</code> from a plain JavaScript object, optionally creating a new instance.
       * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
       * @param {Object} data The plain JavaScript object bearing properties of interest.
       * @param {module:model/OrgTeamsPost} obj Optional instance to populate.
       * @return {module:model/OrgTeamsPost} The populated <code>OrgTeamsPost</code> instance.
       */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new OrgTeamsPost();
  
              if (data.hasOwnProperty('name')) {
                  obj['name'] = ApiClient.convertToType(data['name'], 'String');
              }
              if (data.hasOwnProperty('permission')) {
                  obj['permission'] = ApiClient.convertToType(data['permission'], 'String');
              }
              if (data.hasOwnProperty('repo_names')) {
                  obj['repo_names'] = ApiClient.convertToType(data['repo_names'], ['String']);
              }
          }
          return obj;
      }
  
  
  }
  
  /**
   * @member {String} name
   */
  OrgTeamsPost.prototype['name'] = undefined;
  
  /**
   * @member {module:model/OrgTeamsPost.PermissionEnum} permission
   */
  OrgTeamsPost.prototype['permission'] = undefined;
  
  /**
   * @member {Array.<String>} repo_names
   */
  OrgTeamsPost.prototype['repo_names'] = undefined;
  
  
  
  
  
  /**
   * Allowed values for the <code>permission</code> property.
   * @enum {String}
   * @readonly
   */
  OrgTeamsPost['PermissionEnum'] = {
  
      /**
       * value: "pull"
       * @const
       */
      "pull": "pull",
  
      /**
       * value: "push"
       * @const
       */
      "push": "push",
  
      /**
       * value: "admin"
       * @const
       */
      "admin": "admin"
  };
  
  
  
  export default OrgTeamsPost;
  
  