RulesResultFormatter class
Unified results processor Preserves raw JS engine format (variable1,tag1) and provides organized format (variables[],tags[])
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
formatForUI(
dynamic rulesResult, {bool includeTimestamp = true, bool includeRawResult = true, String? customMessage}) → Map< String, dynamic> - Process rules result keeping raw format and adding organized arrays
-
getOrganizedActions(
Map< String, dynamic> rawResult) → List<Map< String, dynamic> > - Get organized actions array from raw JS engine format (action1,action2,action3,action4 -> actions[])
-
getOrganizedMetrics(
Map< String, dynamic> rawResult) → List<Map< String, dynamic> > - Get organized metrics array from raw JS engine format (metric1,metric2 -> metrics[])
-
getOrganizedResults(
Map< String, dynamic> rawResult) → Map<String, dynamic> - Convert raw JS engine format to organized arrays for easier processing
-
getOrganizedTags(
Map< String, dynamic> rawResult) → List<Map< String, dynamic> > - Get organized tags array from raw JS engine format (tag1,tag2,tag3,tag4 -> tags[])
-
getOrganizedVariables(
Map< String, dynamic> rawResult) → List<Map< String, dynamic> > - Get organized variables array from raw JS engine format (variable1,variable2,variable3,variable4 -> variables[])