LogEvent.fromMap constructor
Implementation
factory LogEvent.fromMap(Map<String, Object> map) => LogEvent(
sourceName: map['sourceName']! as SourceName,
isolateDebugName:
map['isolateDebugName'] == null
? null
: map['isolateDebugName']! as String,
level: LogLevel.fromWeight(map['logLevelWeight']! as int),
message: map['message']! as String,
time: DateTime.parse(map['dateTime']! as String),
stackTrace:
map['stackTrace'] == null
? null
: StackTrace.fromString(map['stackTrace']! as String),
);