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

83 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';
import ResponseMeta from './ResponseMeta';
import User from './User';
/**
* The UserResponse model module.
* @module model/UserResponse
* @version 0.0.2
*/
class UserResponse {
/**
* Constructs a new <code>UserResponse</code>.
* An array Taxnexus user objects
* @alias module:model/UserResponse
*/
constructor() {
UserResponse.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>UserResponse</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/UserResponse} obj Optional instance to populate.
* @return {module:model/UserResponse} The populated <code>UserResponse</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new UserResponse();
if (data.hasOwnProperty('Data')) {
obj['Data'] = ApiClient.convertToType(data['Data'], [User]);
}
if (data.hasOwnProperty('Meta')) {
obj['Meta'] = ResponseMeta.constructFromObject(data['Meta']);
}
}
return obj;
}
}
/**
* @member {Array.<module:model/User>} Data
*/
UserResponse.prototype['Data'] = undefined;
/**
* @member {module:model/ResponseMeta} Meta
*/
UserResponse.prototype['Meta'] = undefined;
export default UserResponse;