LogEntry.fromJson constructor

LogEntry.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory LogEntry.fromJson(Map<String, dynamic> jsonSerialization) {
  return LogEntry(
    id: jsonSerialization['id'] as int?,
    sessionLogId: jsonSerialization['sessionLogId'] as int,
    messageId: jsonSerialization['messageId'] as int?,
    reference: jsonSerialization['reference'] as String?,
    serverId: jsonSerialization['serverId'] as String,
    time: _i1.DateTimeJsonExtension.fromJson(jsonSerialization['time']),
    logLevel: _i2.LogLevel.fromJson((jsonSerialization['logLevel'] as int)),
    message: jsonSerialization['message'] as String,
    error: jsonSerialization['error'] as String?,
    stackTrace: jsonSerialization['stackTrace'] as String?,
    order: jsonSerialization['order'] as int,
  );
}