UNPKG

geography-apis-sdk

Version:

SDK for making requests to Geography APIs

22 lines (18 loc) 351 B
/** * Represents a flag. */ class Flag { /** * Creates an instance of the Flag class. * @param {object} data - The flag data. */ constructor(data) { if(typeof data == 'undefined') return; /** * The URL of the flag. * @type {string} */ this.svg = data.svg; } } module.exports = Flag;