ScanEntry.fromJson constructor

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

Implementation

factory ScanEntry.fromJson(Map<String, dynamic> json) {
  return ScanEntry(
    deviceAddress: json['deviceAddress'] as String,
    rssi: json['rssi'] as int,
    scanRecord:
        ScanRecord.fromJson(json['scanRecord'] as Map<String, dynamic>),
  );
}