SessionLogEntry.fromJson constructor

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

Implementation

factory SessionLogEntry.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return SessionLogEntry(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    serverId: serializationManager
        .deserialize<String>(jsonSerialization['serverId']),
    time:
        serializationManager.deserialize<DateTime>(jsonSerialization['time']),
    module: serializationManager
        .deserialize<String?>(jsonSerialization['module']),
    endpoint: serializationManager
        .deserialize<String?>(jsonSerialization['endpoint']),
    method: serializationManager
        .deserialize<String?>(jsonSerialization['method']),
    duration: serializationManager
        .deserialize<double?>(jsonSerialization['duration']),
    numQueries: serializationManager
        .deserialize<int?>(jsonSerialization['numQueries']),
    slow: serializationManager.deserialize<bool?>(jsonSerialization['slow']),
    error:
        serializationManager.deserialize<String?>(jsonSerialization['error']),
    stackTrace: serializationManager
        .deserialize<String?>(jsonSerialization['stackTrace']),
    authenticatedUserId: serializationManager
        .deserialize<int?>(jsonSerialization['authenticatedUserId']),
    isOpen:
        serializationManager.deserialize<bool?>(jsonSerialization['isOpen']),
    touched: serializationManager
        .deserialize<DateTime>(jsonSerialization['touched']),
  );
}