unPublishAgent method

Future<Response> unPublishAgent(
  1. String agentID
)

Implementation

Future<http.Response> unPublishAgent(String agentID) async {
  final uri = Uri.parse(
      '$baseUrl/unpublishAgent?agentId=$agentID');
  try {
    final response = await http.post(
      uri,
      headers: {
        'Content-Type': 'application/json',
      },
      body: '{}',
    );
    return response;
  } catch (e) {
    rethrow;
  }
}