AgeAssuranceEvent class abstract
Age assurance info coming directly from users. Only works on DID subjects.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
AgeAssuranceEvent.new({@Default('tools.ozone.moderation.defs#ageAssuranceEvent') String $type, required DateTime createdAt, @AgeAssuranceEventStatusConverter() required AgeAssuranceEventStatus status, required String attemptId, String? initIp, String? initUa, String? completeIp, String? completeUa, Map<
String, dynamic> ? $unknown}) -
constfactory
-
AgeAssuranceEvent.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- attemptId → String
-
The unique identifier for this instance of the age assurance flow, in UUID format.
no setterinherited
- completeIp → String?
-
The IP address used when completing the AA flow.
no setterinherited
- completeUa → String?
-
The user agent used when completing the AA flow.
no setterinherited
-
copyWith
→ $AgeAssuranceEventCopyWith<
AgeAssuranceEvent> -
Create a copy of AgeAssuranceEvent
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
The date and time of this write operation.
no setterinherited
- hasCompleteIp → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hasCompleteUa → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasInitIp → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hasInitUa → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hasNotCompleteIp → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hasNotCompleteUa → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hasNotInitIp → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - hasNotInitUa → bool
-
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventExtension extension
no setter - initIp → String?
-
The IP address used when initiating the AA flow.
no setterinherited
- initUa → String?
-
The user agent used when initiating the AA flow.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AgeAssuranceEventStatus
-
The status of the age assurance process.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AgeAssuranceEvent value)) → TResult -
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AgeAssuranceEvent value)?) → TResult? -
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_AgeAssuranceEvent value)?, {required TResult orElse()}) → TResult -
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, DateTime createdAt, AgeAssuranceEventStatus status, String attemptId, String? initIp, String? initUa, String? completeIp, String? completeUa, Map< String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this AgeAssuranceEvent to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, DateTime createdAt, AgeAssuranceEventStatus status, String attemptId, String? initIp, String? initUa, String? completeIp, String? completeUa, Map< String, dynamic> ? $unknown)) → TResult -
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, DateTime createdAt, AgeAssuranceEventStatus status, String attemptId, String? initIp, String? initUa, String? completeIp, String? completeUa, Map< String, dynamic> ? $unknown)?) → TResult? -
Available on AgeAssuranceEvent, provided by the AgeAssuranceEventPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>