jsonToObj static method
The function jsonToObj
takes a JSON object and returns a IndoorBeacon
object with the corresponding
properties.
@param {Map<String, dynamic>} json - A map containing key-value pairs where the keys are strings
and the values can be of any type.
@returns an instance of the IndoorBeacon class.
Implementation
static IndoorBeacon jsonToObj(Map<String, dynamic> json) {
try {
return IndoorBeacon(
json['beaconId'],
json['major'],
json['minor'],
json['venueId'],
json['identifier'],
json['latitude'],
json['longitude'],
json['date'],
json['properties'],
);
} catch (e) {
rethrow;
}
}