Map<String, dynamic> toJson() { return { 'deviceAddress': deviceAddress, 'rssi': rssi, 'scanRecord': scanRecord.toJson(), }; }