VisitorDto constructor

const VisitorDto({
  1. required String id,
  2. required String siteId,
  3. String? email,
  4. String? name,
  5. String? phone,
  6. String? avatarUrl,
  7. String? externalId,
  8. Json customData = const {},
  9. HatangLocale? locale,
  10. DateTime? identifiedAt,
  11. String client = 'app',
  12. VisitorAppInfo? app,
  13. String? currentScreen,
  14. int visits = 1,
  15. Json raw = const {},
})

Creates a visitor.

Implementation

const VisitorDto({
  required this.id,
  required this.siteId,
  this.email,
  this.name,
  this.phone,
  this.avatarUrl,
  this.externalId,
  this.customData = const {},
  this.locale,
  this.identifiedAt,
  this.client = 'app',
  this.app,
  this.currentScreen,
  this.visits = 1,
  this.raw = const {},
});