VisitorDto class
The visitor (this app's user as the site sees them).
- Annotations
Constructors
- VisitorDto({required String id, required String siteId, String? email, String? name, String? phone, String? avatarUrl, String? externalId, Json customData = const {}, HatangLocale? locale, DateTime? identifiedAt, String client = 'app', VisitorAppInfo? app, String? currentScreen, int visits = 1, Json raw = const {}})
-
Creates a visitor.
const
- VisitorDto.fromJson(Json j)
-
Parses the wire shape, keeping unknown fields in raw.
factory
Properties
- app → VisitorAppInfo?
-
Registered app details for app visitors.
final
- avatarUrl → String?
-
Avatar URL.
final
- client → String
-
weborapp.final - currentScreen → String?
-
The screen the app reported.
final
- customData → Json
-
Custom data (from
identify/setData).final - email → String?
-
Known email.
final
- externalId → String?
-
The host app's user id (from
identify).final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Visitor id.
final
- identifiedAt → DateTime?
-
When the visitor was identified.
final
- isIdentified → bool
-
Identified via
identify(has an external id, email or phone).no setter - locale → HatangLocale?
-
Preferred locale.
final
- name → String?
-
Known name.
final
- phone → String?
-
Known phone.
final
- raw → Json
-
The full wire payload.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- siteId → String
-
Site id.
final
- visits → int
-
Number of visits.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json - The wire shape.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited