/**
* BeNomad BeMap JavaScript API - EvBrand (v1.5)
*
* Single brand entry from `GET service/vehicle/1.1/getbrands`. The wire
* shape is `{id, label}` — no logos, no description, no extra metadata
* (matches the v1.1 server DTO and what the Flutter SDK already uses).
*
* @public
* @constructor
* @param {Object} options
* @param {String} options.id MongoDB ObjectId-style identifier.
* @param {String} options.label Human-readable brand name (e.g. `'Smart'`).
*/
bemap.EvBrand = function(options) {
var opts = options || {};
this.id = opts.id || null;
this.label = opts.label || null;
};
bemap.EvBrand.prototype.getId = function() { return this.id; };
bemap.EvBrand.prototype.getLabel = function() { return this.label; };
/**
* Parse a raw `{id, label}` entry into an `EvBrand`.
* @public
* @param {Object} json
* @return {bemap.EvBrand}
*/
bemap.EvBrand.fromJson = function(json) {
if (!json) return new bemap.EvBrand();
return new bemap.EvBrand({ id: json.id, label: json.label });
};