deleteGroupAttributes method

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

Implementation

Future<dynamic> deleteGroupAttributes(Map<String, dynamic> params) async {
  try {
    final deleteGroupAttributesParams =
        DeleteGroupAttributes.formateParams(params);
    final res = await wrappedPromiseToFuture(
        timeweb!.deleteGroupAttributes(deleteGroupAttributesParams));
    if (res.code == 0) {
      return CommonUtils.returnSuccessForCb('ok');
    }
    return CommonUtils.returnError('transfer group member failed');
  } catch (error) {
    return CommonUtils.returnError(error.toString());
  }
}