UNPKG

geography-apis-sdk

Version:

SDK for making requests to Geography APIs

26 lines (23 loc) 578 B
/** * Represents the native name(s) of a country. */ class Native { /** * Creates an instance of the Native class. * @param {object} data - The native data. */ constructor(data) { if(typeof data == 'undefined') return; /** * The common native name of the country. * @type {string} */ this.common = data?.common; /** * The official native name of the country. * @type {string} */ this.official = data?.official; } } module.exports = Native;