changeSuperGroup method

Future<Group> changeSuperGroup(
  1. String sdkId,
  2. String childGroupId,
  3. String operationToken
)

Implementation

Future<Group> changeSuperGroup(String sdkId, String childGroupId, String operationToken) async {
	final res = await _methodChannel.invokeMethod<String>(
		'GroupApi.changeSuperGroup',
		{
			"sdkId": sdkId,
			"childGroupId": jsonEncode(childGroupId),
			"operationToken": jsonEncode(operationToken),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method changeSuperGroup");
	final parsedResJson = jsonDecode(res);
	return Group.fromJSON(parsedResJson);
}