modifyDeviceInGroup method

Future<Device> modifyDeviceInGroup(
  1. String sdkId,
  2. String groupId,
  3. Device device
)

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);
}