createIssue method

  1. @override
Future<HttpResponse> createIssue(
  1. Todo todo,
  2. Configuration configuration
)
override

Implementation

@override
Future<HttpResponse> createIssue(
    Todo todo, Configuration configuration) async {
  String url = getUrl(configuration);
  Map<String, String> headers = getHeaders(configuration);
  Map<String, String> body = getBody(todo);

  HttpResponse response = await httpClient.post(
    url,
    headers: headers,
    body: body,
  );

  return response;
}