AttributeContext_Request constructor

AttributeContext_Request({
  1. String? id,
  2. String? method,
  3. Map<String, String>? headers,
  4. String? path,
  5. String? host,
  6. String? scheme,
  7. String? query,
  8. Timestamp? time,
  9. Int64? size,
  10. String? protocol,
  11. String? reason,
  12. AttributeContext_Auth? auth,
})

Implementation

factory AttributeContext_Request({
  $core.String? id,
  $core.String? method,
  $core.Map<$core.String, $core.String>? headers,
  $core.String? path,
  $core.String? host,
  $core.String? scheme,
  $core.String? query,
  $2.Timestamp? time,
  $fixnum.Int64? size,
  $core.String? protocol,
  $core.String? reason,
  AttributeContext_Auth? auth,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (method != null) {
    $result.method = method;
  }
  if (headers != null) {
    $result.headers.addAll(headers);
  }
  if (path != null) {
    $result.path = path;
  }
  if (host != null) {
    $result.host = host;
  }
  if (scheme != null) {
    $result.scheme = scheme;
  }
  if (query != null) {
    $result.query = query;
  }
  if (time != null) {
    $result.time = time;
  }
  if (size != null) {
    $result.size = size;
  }
  if (protocol != null) {
    $result.protocol = protocol;
  }
  if (reason != null) {
    $result.reason = reason;
  }
  if (auth != null) {
    $result.auth = auth;
  }
  return $result;
}