Source: model/CustomPatch.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 CustomPatch model module.
 * @module model/CustomPatch
 */
export class CustomPatch {
  /**
   * Constructs a new <code>CustomPatch</code>.
   * @alias module:model/CustomPatch
   * @class
   */
  constructor() {
  }

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

/**
 * @member {String} type
 */
CustomPatch.prototype.type = undefined;

/**
 * @member {String} value
 */
CustomPatch.prototype.value = undefined;