DVCrashContext class

Where and in what a crash happened.

Constructors

DVCrashContext({required String release, required String installId, String? patch, String? protocolVersion, String? platform, String? deviceClass, String? locale, String? cohort, String? userId, String? role})
const

Properties

cohort → String?
The rollout cohort the device is in, so release health can be read per cohort.
final
deviceClass → String?
phone, tablet, desktop, tv, kiosk.
final
hashCode → int
The hash code for this object.
no setterinherited
installId → String
An install-scoped random id — not a user and not an advertising id. It groups one device's reports and is gone when the application is reinstalled or its data is cleared.
final
locale → String?
final
patch → String?
The OTA patch applied over it, if any.
final
platform → String?
final
protocolVersion → String?
final
release → String
The release the binary came from.
final
role → String?
The role of the server process the report came from -- web, worker or cron -- when it came from one. One binary runs as all three, and a report that does not say which sends an operator to the wrong logs.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String?
The account the report is tied to: null by default, and only ever set through a DVCrashIdentity whose consent category is granted. Absent from the JSON when null, so a report with no identity carries no key that could be mistaken for one.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → DVCrashContext