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