FFXLinkCampaign class final

Campaign attribution on a link: the five UTM dimensions, set when the link is made and never changed.

Constructors

FFXLinkCampaign({String source = '', String medium = '', String name = '', String term = '', String content = ''})
const
FFXLinkCampaign.fromJson(Map<String, Object?> json)
A campaign from its own field names or utm_* keys; blanks trimmed away, the own name winning when both are present.
factory

Properties

content → String
utm_content.
final
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
no setter
medium → String
utm_medium.
final
name → String
utm_campaign.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
utm_source.
final
term → String
utm_term.
final
utmParameters → Map<String, String>
The utm_* pairs this campaign contributes, blanks omitted.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Its own field names, blanks omitted: the create body's shape.
toString() → String
A string representation of this object.
override

Operators

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

Constants

empty → const FFXLinkCampaign
No attribution: the common case of an organic link.