AttributeContext_Response constructor

AttributeContext_Response({
  1. Int64? code,
  2. Int64? size,
  3. Iterable<MapEntry<String, String>>? headers,
  4. Timestamp? time,
  5. Duration? backendLatency,
})

Implementation

factory AttributeContext_Response({
  $fixnum.Int64? code,
  $fixnum.Int64? size,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? headers,
  $2.Timestamp? time,
  $3.Duration? backendLatency,
}) {
  final result = create();
  if (code != null) result.code = code;
  if (size != null) result.size = size;
  if (headers != null) result.headers.addEntries(headers);
  if (time != null) result.time = time;
  if (backendLatency != null) result.backendLatency = backendLatency;
  return result;
}