LogSettings.fromJson constructor
LogSettings.fromJson(
- Map<
String, dynamic> jsonSerialization, - SerializationManager serializationManager
Implementation
factory LogSettings.fromJson(
Map<String, dynamic> jsonSerialization,
_i1.SerializationManager serializationManager,
) {
return LogSettings(
logLevel: serializationManager
.deserialize<_i2.LogLevel>(jsonSerialization['logLevel']),
logAllSessions: serializationManager
.deserialize<bool>(jsonSerialization['logAllSessions']),
logAllQueries: serializationManager
.deserialize<bool>(jsonSerialization['logAllQueries']),
logSlowSessions: serializationManager
.deserialize<bool>(jsonSerialization['logSlowSessions']),
logStreamingSessionsContinuously: serializationManager.deserialize<bool>(
jsonSerialization['logStreamingSessionsContinuously']),
logSlowQueries: serializationManager
.deserialize<bool>(jsonSerialization['logSlowQueries']),
logFailedSessions: serializationManager
.deserialize<bool>(jsonSerialization['logFailedSessions']),
logFailedQueries: serializationManager
.deserialize<bool>(jsonSerialization['logFailedQueries']),
slowSessionDuration: serializationManager
.deserialize<double>(jsonSerialization['slowSessionDuration']),
slowQueryDuration: serializationManager
.deserialize<double>(jsonSerialization['slowQueryDuration']),
);
}