Source: model/CreateClusterTokenResponse.js

/*
 * Signadot API
 * API for Signadot Sandboxes
 *
 * OpenAPI spec version: 1.0
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 *
 * Swagger Codegen version: 2.4.25
 *
 * Do not edit the class manually.
 *
 */

import {ApiClient} from '../ApiClient';

/**
 * The CreateClusterTokenResponse model module.
 * @module model/CreateClusterTokenResponse
 */
export class CreateClusterTokenResponse {
  /**
   * Constructs a new <code>CreateClusterTokenResponse</code>.
   * @alias module:model/CreateClusterTokenResponse
   * @class
   */
  constructor() {
  }

  /**
   * Constructs a <code>CreateClusterTokenResponse</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/CreateClusterTokenResponse} obj Optional instance to populate.
   * @return {module:model/CreateClusterTokenResponse} The populated <code>CreateClusterTokenResponse</code> instance.
   */
  static constructFromObject(data, obj) {
    if (data) {
      obj = obj || new CreateClusterTokenResponse();
      if (data.hasOwnProperty('id'))
        obj.id = ApiClient.convertToType(data['id'], 'String');
      if (data.hasOwnProperty('token'))
        obj.token = ApiClient.convertToType(data['token'], 'String');
    }
    return obj;
  }
}

/**
 * @member {String} id
 */
CreateClusterTokenResponse.prototype.id = undefined;

/**
 * @member {String} token
 */
CreateClusterTokenResponse.prototype.token = undefined;