toJson method

Map<String, dynamic> toJson()

Converts headers to a JSON-encodable map.

Implementation

Map<String, dynamic> toJson() => toMap();