QueryLogEntry.fromJson constructor

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

Implementation

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