getQueryParameters method

Map<String, String> getQueryParameters(
  1. Todo todo
)

Implementation

Map<String, String> getQueryParameters(Todo todo) {
  Map<String, String> queryParameters = {
    "title": todo.title,
    "description": todo.body,
    "labels": todo.labels.join(","),
  };

  return queryParameters;
}