MetricEvent class
A raw metric event.
THis is the root object of the data that is sent to the AppFit API.
Constructors
- MetricEvent({required DateTime occurredAt, required MetricPayload payload})
-
Creates a new instance of MetricEvent.
const
-
MetricEvent.fromJson(Map<
String, dynamic> json) -
Creates a new instance of MetricEvent from a JSON object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- occurredAt → DateTime
-
The time the event occurred.
final
- payload → MetricPayload
-
The event payload.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? projectId, DateTime? occurredAt, MetricPayload? payload}) → MetricEvent - Allows you to create a new instance of the MetricEvent with updated values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the MetricEvent to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited