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