QueryLogEntry.fromJson constructor

QueryLogEntry.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory QueryLogEntry.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return QueryLogEntry(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    serverId: serializationManager
        .deserialize<String>(jsonSerialization['serverId']),
    sessionLogId: serializationManager
        .deserialize<int>(jsonSerialization['sessionLogId']),
    messageId: serializationManager
        .deserialize<int?>(jsonSerialization['messageId']),
    query:
        serializationManager.deserialize<String>(jsonSerialization['query']),
    duration: serializationManager
        .deserialize<double>(jsonSerialization['duration']),
    numRows:
        serializationManager.deserialize<int?>(jsonSerialization['numRows']),
    error:
        serializationManager.deserialize<String?>(jsonSerialization['error']),
    stackTrace: serializationManager
        .deserialize<String?>(jsonSerialization['stackTrace']),
    slow: serializationManager.deserialize<bool>(jsonSerialization['slow']),
    order: serializationManager.deserialize<int>(jsonSerialization['order']),
  );
}