DeepLinkData class

Encapsulates all data associated with a LinkForty deep link.

This model is used for both deferred deep links (attribution) and direct deep links (app opening).

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

DeepLinkData({required String shortCode, String? iosURL, String? androidURL, String? webURL, UTMParameters? utmParameters, Map<String, String>? customParameters, String? deepLinkPath, String? appScheme, DateTime? clickedAt, String? linkId})
Creates deep link data
const
DeepLinkData.fromJson(Map<String, dynamic> json)
JSON deserialization
factory

Properties

androidURL → String?
Android-specific URL (App Link or custom scheme)
final
appScheme → String?
App URI scheme (e.g., "myapp")
final
clickedAt → DateTime?
When the link was clicked (for attributed installs)
final
customParameters → Map<String, String>?
Custom query parameters from the link
final
deepLinkPath → String?
Deep link path for in-app routing (e.g., "/product/123")
final
hashCode → int
The hash code for this object.
no setteroverride
iosURL → String?
iOS-specific URL (Universal Link or custom scheme)
final
linkId → String?
The link ID from the backend
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortCode → String
The short code of the link (e.g., "abc123")
final
utmParameters → UTMParameters?
UTM parameters from the link
final
webURL → String?
Web fallback URL
final

Methods

mergingUrlParameters(Map<String, String>? fromUrl) → DeepLinkData
Returns a copy with the parameters carried on the opened URL merged in.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
JSON serialization
toString() → String
A string representation of this object.
override

Operators

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