jsonToObj static method

IndoorBeacon jsonToObj(
  1. Map<String, dynamic> json
)

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;
  }
}