modifyDevice method
Implementation
Future<Device> modifyDevice(String sdkId, Device device) async {
final res = await _methodChannel.invokeMethod<String>(
'DeviceApi.modifyDevice',
{
"sdkId": sdkId,
"device": jsonEncode(Device.encode(device)),
}
);
if (res == null) throw AssertionError("received null result from platform method modifyDevice");
final parsedResJson = jsonDecode(res);
return Device.fromJSON(parsedResJson);
}