deviceList method
Implementation
@override
Future<List<DeviceUser>> deviceList() {
return _channel.invokeMethod("deviceList").then((value) {
List<DeviceUser> deviceUserList = [];
if (value != null || value == "null") {
List<dynamic> listJson = json.decode(value);
for (var value1 in listJson) {
deviceUserList.add(DeviceUser.fromJson(value1));
}
}
return deviceUserList;
});
}