BanUser static method
Implementation
static Future<OperationResponse> BanUser(UserInfo userInfo) async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = AdminManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
OperationResponse operationResponse = await stub.banUser(userInfo);
print('GetAllUser: ${operationResponse}');
channel.shutdown();
return operationResponse;
}