createFriendGroup method

Future createFriendGroup(
  1. Map<String, dynamic> params
)

Implementation

Future<dynamic> createFriendGroup(Map<String, dynamic> params) async {
  try {
    var formateParams = FriendGroup.formateParams(params);
    final res = await wrappedPromiseToFuture(
        timeWeb!.createFriendGroup(formateParams));
    log(res);
    final formateResult = FriendGroup.formateResult(jsToMap(res.data));
    return CommonUtils.returnSuccess<List<V2TimFriendOperationResult>>(
        formateResult);
  } catch (error) {
    return CommonUtils.returnErrorForValueCb<
        List<V2TimFriendOperationResult>>(error);
  }
}