UsageRecord class
UsageRecord
Constructors
- UsageRecord({required String id, required String entryId, required String contextId, required String consumerDid, required UsageRecordKind kind, required UsageRecordOutcome outcome, required String occurredAt, String? deviceId, String? sessionId, String? policyDecisionId, String? errorCode})
-
const
-
UsageRecord.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- consumerDid → String
-
DID of the Companion/Service that initiated the use.
final
- contextId → String
-
final
- deviceId → String?
-
final
- entryId → String
-
final
- errorCode → String?
-
Trust Task error code when outcome is a failure.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- kind → UsageRecordKind
-
final
- occurredAt → String
-
final
- outcome → UsageRecordOutcome
-
final
- policyDecisionId → String?
-
Pointer to the policy evaluation record for forensic detail.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
For successful proxy-logins, the maintainer-assigned session id; absent for
releases and for failures.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited