DexcomEventData class

DexcomEventData is a class implementing the data model of the user event log.

Implemented types

Constructors

DexcomEventData({required EventType eventType, required DateTime systemTime, required DateTime displayTime, EventSubtype? eventSubtype, double? value, EventUnit? eventUnit, required String eventId, required EventStatus eventStatus})
Default DexcomEventData constructor.
DexcomEventData.fromJson({required Map<String, dynamic> json})
Generates a DexcomEventData obtained from a json.
factory

Properties

displayTime DateTime
The time displayed on the receiving device when the DexcomEventData was recorded.
final
eventId String
The ID of the DexcomEventData.
final
eventStatus EventStatus
The status of the DexcomEventData. The G6 app enabled the ability to delete events after they have been created. To accomodate this, the eventId and eventStatus fields were introduced. When an event is initially created by the user, the eventStatus is set to "created". If the user deletes the event, the eventStatus will be changed to "deleted". The eventId will remain the same. For events generated by receiving devices that do not have the ability to delete events (such as the G4 and G5 apps), the eventStatus field will always return "created".
final
eventSubtype EventSubtype?
The subtype of DexcomEventData.
final
eventType EventType
The type of DexcomEventData.
final
eventUnit EventUnit?
The unit of measurement of DexcomEventData.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemTime DateTime
The time according to the system clock at which the DexcomEventData was recorded; nominally UTC.
final
value double?
The value of input.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson<T extends DexcomData>() Map<String, dynamic>
Converts the value to a json.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited