toLoggerEntity method Null safety

LoggerEntity toLoggerEntity(
  1. String id,
  2. LogEntry entry
)

Implementation

static LoggerEntity toLoggerEntity(String id, LogEntry entry) {
  return LoggerEntity(
    id: id,
    logLevel: entry.logLevel,
    message: entry.message,
    data: entry.data,
    error: entry.error,
    loggerName: entry.loggerName,
    source: entry.source,
    stackTrace: entry.stackTrace,
    timeStamp: entry.timeStamp,
  );
}