toLogEntry method Null safety

LogEntry toLogEntry(
  1. LoggerEntity entity
)

Implementation

static LogEntry toLogEntry(LoggerEntity entity) {
  return LogEntry(
    // id: id,
    logLevel: entity.logLevel,
    message: entity.message,
    data: entity.data,
    error: entity.error,
    loggerName: entity.loggerName,
    source: entity.source,
    stackTrace: entity.stackTrace,
    timeStamp: entity.timeStamp,
  );
}