/**
 * Fatture in Cloud API v2 - API Reference
 * Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
 *
 * The version of the OpenAPI document: 2.0.16
 * Contact: info@fattureincloud.it
 *
 * 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 VerifyEInvoiceXmlResponseData model module.
 * @module model/VerifyEInvoiceXmlResponseData
 * @version 2.0.13
 */
class VerifyEInvoiceXmlResponseData {
  /**
     * Constructs a new <code>VerifyEInvoiceXmlResponseData</code>.
     * @alias module:model/VerifyEInvoiceXmlResponseData
     */
  constructor () {
    VerifyEInvoiceXmlResponseData.initialize(this)
  }

  /**
     * 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) {
  }

  /**
     * Constructs a <code>VerifyEInvoiceXmlResponseData</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/VerifyEInvoiceXmlResponseData} obj Optional instance to populate.
     * @return {module:model/VerifyEInvoiceXmlResponseData} The populated <code>VerifyEInvoiceXmlResponseData</code> instance.
     */
  static constructFromObject (data, obj) {
    if (data) {
      obj = obj || new VerifyEInvoiceXmlResponseData()

      if (data.hasOwnProperty('success')) {
        obj.success = ApiClient.convertToType(data.success, 'Boolean')
      }
    }
    return obj
  }
}

/**
 * Determine if the invoice XML is valid.
 * @member {Boolean} success
 */
VerifyEInvoiceXmlResponseData.prototype.success = undefined

export default VerifyEInvoiceXmlResponseData
