Source: model/GetSandboxesResponse.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';
import {SandboxInfo} from './SandboxInfo';

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

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

/**
 * @member {Array.<module:model/SandboxInfo>} sandboxes
 */
GetSandboxesResponse.prototype.sandboxes = undefined;