createPermissionGroupInCommunity method

  1. @override
Future<V2TimValueCallback<String>> createPermissionGroupInCommunity({
  1. required V2TimPermissionGroupInfo info,
})
override

Implementation

@override
Future<V2TimValueCallback<String>> createPermissionGroupInCommunity({
  required V2TimPermissionGroupInfo info,
}) async {
  Map<String, dynamic> param = {
    "info": info.toJson(),
  };
  var resp = V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createPermissionGroupInCommunity",
        buildCommunityManagerParam(
          param,
        ),
      ),
    ),
  );
  log("createPermissionGroupInCommunity", param, resp.toLogString());
  return resp;
}