BeaconResult.fromJson constructor

BeaconResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

BeaconResult.fromJson(Map<String,dynamic> json) {
  name =json["name"];
  uuid =json["uuid"];
  macAddress = json["macAddress"];
  major = json["major"];
  minor = json["minor"];
  distance = json["distance"];
  proximity = double.parse(json["proximity"]);
  scanTime = json["scanTime"];
  rssi = json["rssi"];
  txPower = json["txPower"];
}