readDeviceStatus method
Implementation
@override
Future<DeviceStatusInfo?> readDeviceStatus() {
return _channel.invokeMethod<String>("readDeviceStatus").then((value) {
if (value == null || value == "null") {
return null;
}
Map<String, dynamic> map = json.decode(value);
return DeviceStatusInfo.fromJson(map);
});
}