PossibleIntervention class
Represents a segment of a trip where a driving intervention could have occurred.
This class encapsulates all relevant information about a potential intervention event, including its time, geographic coordinates, start and end addresses, and associated scoring statistics.
Constructors
-
PossibleIntervention({String? scoringType, String? startTime, double? startLatitude, double? startLongitude, PossibleInterventionAddress? startAddress, String? endTime, double? endLatitude, double? endLongitude, PossibleInterventionAddress? endAddress, Map<
String?, PossibleInterventionScoreStats?> ? scoreStats}) -
const
-
PossibleIntervention.fromJson(Map<
String, dynamic> json) -
Factory constructor to create an instance from JSON.
factory
Properties
- endAddress → PossibleInterventionAddress?
-
The resolved physical address corresponding to the end coordinates.
@see PossibleInterventionAddress
final
- endLatitude → double?
-
The geographic latitude at the end of the event.
final
- endLongitude → double?
-
The geographic longitude at the end of the event.
final
- endTime → String?
-
The ISO 8601 formatted end time of the event.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scoreStats
→ Map<
String?, PossibleInterventionScoreStats?> ? -
A map of statistical data for different scoring categories related to this event.
The key is the name of the score (e.g., "SPEEDING"), and the value contains
the statistics for that score.
@see PossibleInterventionScoreStats
final
- scoringType → String?
-
The type of scoring used for this intervention.
Example: "driving_behaviour"
final
- startAddress → PossibleInterventionAddress?
-
The resolved physical address corresponding to the start coordinates.
@see PossibleInterventionAddress
final
- startLatitude → double?
-
The geographic latitude at the start of the event.
final
- startLongitude → double?
-
The geographic longitude at the start of the event.
final
- startTime → String?
-
The ISO 8601 formatted start time of the event.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override