toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final headers = this.headers;
  final queryString = this.queryString;
  return {
    if (headers != null) 'headers': headers,
    if (queryString != null) 'queryString': queryString,
  };
}