UNPKG

league-wrapper

Version:

REST API Wrapper for the League of Legends API

19 lines (15 loc) 436 B
'use strict'; const convert = require('../../util/convert.js'); /** * @class * @alias module:LeagueWrapper/dto/lolStaticData~MasteryTreeItemDto * @property {number} masteryId * @property {string} prereq */ class MasteryTreeItemDto { constructor(data) { this.masteryId = convert(data.masteryId, Number); this.prereq = convert(data.prereq, String); } } exports = module.exports = MasteryTreeItemDto;