getHeaders method

Headers getHeaders()

Implementation

Headers getHeaders() {
  final checkedHeaders = headers;
  final h = Headers();

  if (checkedHeaders != null) {
    final map = jsonDecode(utf8.decode(checkedHeaders));
    map.forEach((key, value) => h.set(key, value));
  }

  return h;
}