toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (auth != null) 'auth': auth!,
  if (headers != null) 'headers': headers!,
  if (host != null) 'host': host!,
  if (id != null) 'id': id!,
  if (method != null) 'method': method!,
  if (origin != null) 'origin': origin!,
  if (path != null) 'path': path!,
  if (protocol != null) 'protocol': protocol!,
  if (query != null) 'query': query!,
  if (reason != null) 'reason': reason!,
  if (scheme != null) 'scheme': scheme!,
  if (size != null) 'size': size!,
  if (time != null) 'time': time!,
};