SessionLogEntry.fromJson constructor
SessionLogEntry.fromJson(
- Map<String, dynamic> jsonSerialization
)
Implementation
factory SessionLogEntry.fromJson(Map<String, dynamic> jsonSerialization) {
return SessionLogEntry(
id: jsonSerialization['id'] as int?,
serverId: jsonSerialization['serverId'] as String,
time: _i1.DateTimeJsonExtension.fromJson(jsonSerialization['time']),
module: jsonSerialization['module'] as String?,
endpoint: jsonSerialization['endpoint'] as String?,
method: jsonSerialization['method'] as String?,
duration: (jsonSerialization['duration'] as num?)?.toDouble(),
numQueries: jsonSerialization['numQueries'] as int?,
slow: jsonSerialization['slow'] as bool?,
error: jsonSerialization['error'] as String?,
stackTrace: jsonSerialization['stackTrace'] as String?,
authenticatedUserId: jsonSerialization['authenticatedUserId'] as int?,
isOpen: jsonSerialization['isOpen'] as bool?,
touched: _i1.DateTimeJsonExtension.fromJson(jsonSerialization['touched']),
);
}