LogEntry constructor

LogEntry({
  1. Any? protoPayload,
  2. String? textPayload,
  3. String? insertId,
  4. Struct? structPayload,
  5. String? name,
  6. Timestamp? timestamp,
  7. LogSeverity? severity,
  8. Iterable<MapEntry<String, String>>? labels,
  9. HttpRequest? httpRequest,
  10. String? trace,
  11. LogEntryOperation? operation,
  12. LogEntrySourceLocation? sourceLocation,
})

Implementation

factory LogEntry({
  $0.Any? protoPayload,
  $core.String? textPayload,
  $core.String? insertId,
  $1.Struct? structPayload,
  $core.String? name,
  $2.Timestamp? timestamp,
  $4.LogSeverity? severity,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? labels,
  $3.HttpRequest? httpRequest,
  $core.String? trace,
  LogEntryOperation? operation,
  LogEntrySourceLocation? sourceLocation,
}) {
  final result = create();
  if (protoPayload != null) result.protoPayload = protoPayload;
  if (textPayload != null) result.textPayload = textPayload;
  if (insertId != null) result.insertId = insertId;
  if (structPayload != null) result.structPayload = structPayload;
  if (name != null) result.name = name;
  if (timestamp != null) result.timestamp = timestamp;
  if (severity != null) result.severity = severity;
  if (labels != null) result.labels.addEntries(labels);
  if (httpRequest != null) result.httpRequest = httpRequest;
  if (trace != null) result.trace = trace;
  if (operation != null) result.operation = operation;
  if (sourceLocation != null) result.sourceLocation = sourceLocation;
  return result;
}