MessageLogEntry.fromJson constructor

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

Implementation

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