lib/client/auth/src/model/Error.js

88 lines
2.1 KiB
JavaScript

/**
* auth
* Authentication Microservice
*
* The version of the OpenAPI document: 0.0.2
* Contact: noc@taxnexus.net
*
* 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 Error model module.
* @module model/Error
* @version 0.0.2
*/
class Error {
/**
* Constructs a new <code>Error</code>.
* @alias module:model/Error
*/
constructor() {
Error.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>Error</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/Error} obj Optional instance to populate.
* @return {module:model/Error} The populated <code>Error</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Error();
if (data.hasOwnProperty('Code')) {
obj['Code'] = ApiClient.convertToType(data['Code'], 'Number');
}
if (data.hasOwnProperty('Fields')) {
obj['Fields'] = ApiClient.convertToType(data['Fields'], 'String');
}
if (data.hasOwnProperty('Message')) {
obj['Message'] = ApiClient.convertToType(data['Message'], 'String');
}
}
return obj;
}
}
/**
* @member {Number} Code
*/
Error.prototype['Code'] = undefined;
/**
* @member {String} Fields
*/
Error.prototype['Fields'] = undefined;
/**
* @member {String} Message
*/
Error.prototype['Message'] = undefined;
export default Error;