build method

String build()

Implementation

String build() {
  return jsonEncode({
    'type': _type,
    'url': _url,
    'method': _method,
    'headers': _headers,
  });
}