LogEntry constructor

LogEntry({
  1. Any? protoPayload,
  2. String? textPayload,
  3. String? insertId,
  4. Struct? jsonPayload,
  5. HttpRequest? httpRequest,
  6. MonitoredResource? resource,
  7. Timestamp? timestamp,
  8. LogSeverity? severity,
  9. Map<String, String>? labels,
  10. String? logName,
  11. LogEntryOperation? operation,
  12. String? trace,
  13. LogEntrySourceLocation? sourceLocation,
  14. Timestamp? receiveTimestamp,
  15. String? spanId,
  16. bool? traceSampled,
})

Implementation

factory LogEntry({
  $0.Any? protoPayload,
  $core.String? textPayload,
  $core.String? insertId,
  $1.Struct? jsonPayload,
  $2.HttpRequest? httpRequest,
  $3.MonitoredResource? resource,
  $4.Timestamp? timestamp,
  $5.LogSeverity? severity,
  $core.Map<$core.String, $core.String>? labels,
  $core.String? logName,
  LogEntryOperation? operation,
  $core.String? trace,
  LogEntrySourceLocation? sourceLocation,
  $4.Timestamp? receiveTimestamp,
  $core.String? spanId,
  $core.bool? traceSampled,
}) {
  final _result = create();
  if (protoPayload != null) {
    _result.protoPayload = protoPayload;
  }
  if (textPayload != null) {
    _result.textPayload = textPayload;
  }
  if (insertId != null) {
    _result.insertId = insertId;
  }
  if (jsonPayload != null) {
    _result.jsonPayload = jsonPayload;
  }
  if (httpRequest != null) {
    _result.httpRequest = httpRequest;
  }
  if (resource != null) {
    _result.resource = resource;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (severity != null) {
    _result.severity = severity;
  }
  if (labels != null) {
    _result.labels.addAll(labels);
  }
  if (logName != null) {
    _result.logName = logName;
  }
  if (operation != null) {
    _result.operation = operation;
  }
  if (trace != null) {
    _result.trace = trace;
  }
  if (sourceLocation != null) {
    _result.sourceLocation = sourceLocation;
  }
  if (receiveTimestamp != null) {
    _result.receiveTimestamp = receiveTimestamp;
  }
  if (spanId != null) {
    _result.spanId = spanId;
  }
  if (traceSampled != null) {
    _result.traceSampled = traceSampled;
  }
  return _result;
}