LogEntryData constructor

LogEntryData({
  1. AuditLog? protoPayload,
  2. String? insertId,
  3. MonitoredResource? resource,
  4. Timestamp? timestamp,
  5. LogSeverity? severity,
  6. Map<String, String>? labels,
  7. String? logName,
  8. LogEntryOperation? operation,
  9. String? trace,
  10. Timestamp? receiveTimestamp,
  11. String? spanId,
  12. LogSplit? split,
})

Implementation

factory LogEntryData({
  AuditLog? protoPayload,
  $core.String? insertId,
  $42.MonitoredResource? resource,
  $2.Timestamp? timestamp,
  LogSeverity? severity,
  $core.Map<$core.String, $core.String>? labels,
  $core.String? logName,
  LogEntryOperation? operation,
  $core.String? trace,
  $2.Timestamp? receiveTimestamp,
  $core.String? spanId,
  LogSplit? split,
}) {
  final $result = create();
  if (protoPayload != null) {
    $result.protoPayload = protoPayload;
  }
  if (insertId != null) {
    $result.insertId = insertId;
  }
  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 (receiveTimestamp != null) {
    $result.receiveTimestamp = receiveTimestamp;
  }
  if (spanId != null) {
    $result.spanId = spanId;
  }
  if (split != null) {
    $result.split = split;
  }
  return $result;
}