publishAgent method

Future<Response> publishAgent(
  1. String agentID
)

Implementation

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