mapToDevice method
Converts JSON to a NearbyDevice.
Implementation
@override
NearbyDevice? mapToDevice(dynamic value) {
final decoded = JSONDecoder.decodeMap(value);
if (decoded == null) return null;
return NearbyIOSDevice.fromJson(decoded);
}