/**
* GameBrain API
* GameBrain API
*
* The version of the OpenAPI document: 1.0.1
* Contact: mail@gamebrain.co
*
* 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 GameResponseRating model module.
* @module model/GameResponseRating
* @version 1.0.2
*/
class GameResponseRating {
/**
* Constructs a new <code>GameResponseRating</code>.
* @alias module:model/GameResponseRating
*/
constructor() {
GameResponseRating.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>GameResponseRating</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/GameResponseRating} obj Optional instance to populate.
* @return {module:model/GameResponseRating} The populated <code>GameResponseRating</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new GameResponseRating();
if (data.hasOwnProperty('mean')) {
obj['mean'] = ApiClient.convertToType(data['mean'], 'Number');
}
if (data.hasOwnProperty('count')) {
obj['count'] = ApiClient.convertToType(data['count'], 'Number');
}
if (data.hasOwnProperty('mean_players')) {
obj['mean_players'] = ApiClient.convertToType(data['mean_players'], 'Number');
}
if (data.hasOwnProperty('count_players')) {
obj['count_players'] = ApiClient.convertToType(data['count_players'], 'Number');
}
if (data.hasOwnProperty('mean_critics')) {
obj['mean_critics'] = ApiClient.convertToType(data['mean_critics'], 'Number');
}
if (data.hasOwnProperty('count_critics')) {
obj['count_critics'] = ApiClient.convertToType(data['count_critics'], 'Number');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>GameResponseRating</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameResponseRating</code>.
*/
static validateJSON(data) {
return true;
}
}
/**
* @member {Number} mean
*/
GameResponseRating.prototype['mean'] = undefined;
/**
* @member {Number} count
*/
GameResponseRating.prototype['count'] = undefined;
/**
* @member {Number} mean_players
*/
GameResponseRating.prototype['mean_players'] = undefined;
/**
* @member {Number} count_players
*/
GameResponseRating.prototype['count_players'] = undefined;
/**
* @member {Number} mean_critics
*/
GameResponseRating.prototype['mean_critics'] = undefined;
/**
* @member {Number} count_critics
*/
GameResponseRating.prototype['count_critics'] = undefined;
export default GameResponseRating;