DeviceDatum class

Holds basic information about the mobile device from where the data is collected.

More information on the data from Android and iOS are available at:

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

DeviceDatum(String? platform, String? deviceId, {String? deviceName, String? deviceModel, String? deviceManufacturer, String? operatingSystem, String? hardware})
DeviceDatum.fromJson(Map<String, dynamic> json)
factory

Properties

deviceId String?
An identifier that is unique to the particular device which this Datum was collected. Note that this ID will change if the user performs a factory reset on their device.
getter/setter pair
deviceManufacturer String?
Device manufacturer as specified by the OS.
getter/setter pair
deviceModel String?
Device model as specified by the OS.
getter/setter pair
deviceName String?
Device name as specified by the OS.
getter/setter pair
format ↔ DataFormat
The DataFormat of this type of Datum.
getter/setter pairinherited-setteroverride-getter
hardware String?
The hardware type from which this Datum was collected (e.g. 'iPhone7,1' for iPhone 6 Plus).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
An identifier for this Datum, unique across all data generated. If this datum is part of a MultiDatum, then this id is null.
getter/setter pairinherited
operatingSystem String?
Device OS as specified by the OS.
getter/setter pair
platform String?
The platform type from which this Datum was collected.
getter/setter pair
release String?
The OS release.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdk String?
The SDK version.
getter/setter pair
timestamp DateTime
The UTC timestamp when this data was generated on the device.
getter/setter pairinherited

Methods

equivalentTo(ConditionalEvent? event) bool
Returns true if the deviceId is equal.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this datum.
override
toString() String
A string representation of this object.
override

Operators

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