Funnel class

Constructors

Funnel({bool? available, int? orders, int? pageviews, num? revenue, int? signups, int? visitors, int? windowDays})
Returns a new Funnel instance.

Properties

available ↔ bool?
Available separates "this org has no traffic" from "we could not ask". False means the warehouse was unreachable or the org has emitted nothing at all, and every count below is then a placeholder zero rather than a measurement — a caller must read this before reading any of them.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
orders ↔ int?
Orders counts completed orders in the window — purchases, not carts started.
getter/setter pair
pageviews ↔ int?
Pageviews counts page events in the window, one per view rather than per person, so a single visitor reading ten pages counts ten.
getter/setter pair
revenue ↔ num?
Revenue is the sum of the amounts those orders reported, in whatever currency the beacon stamped on them (major units, e.g. 49.5 for $49.50) — NOT cents, and not converted to a single currency. Contrast revenueCents on the profile, which is the money of record.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signups ↔ int?
Signups counts completed signups in the window, the step where an anonymous visitor becomes somebody with an account.
getter/setter pair
visitors ↔ int?
Visitors is the number of DISTINCT people seen in the window, counted by the beacon's distinct id — so it is unique visitors, not sessions and not views.
getter/setter pair
windowDays ↔ int?
WindowDays is the length of the trailing window every count covers, so a reader knows whether 40 signups is a month or a day.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → Funnel?
Returns a new Funnel instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Funnel>
mapFromJson(dynamic json) → Map<String, Funnel>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Funnel>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.