toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final statusCode = this.statusCode;
  final host = this.host;
  final path = this.path;
  final port = this.port;
  final protocol = this.protocol;
  final query = this.query;
  return {
    'StatusCode': statusCode.toValue(),
    if (host != null) 'Host': host,
    if (path != null) 'Path': path,
    if (port != null) 'Port': port,
    if (protocol != null) 'Protocol': protocol,
    if (query != null) 'Query': query,
  };
}