DefaultMetadata class
DefaultMetadata that can be used to enrich the analytics data. DefaultMetadata is not bound to a specific source and can be used to set fields for the lifecycle of the collector. If fields are specified in SourceMetadata and DefaultMetadata, SourceMetadata takes precedence.
- Inheritance
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- DefaultMetadata({String? cdnProvider, String? customUserId, CustomData customData = const CustomData()})
-
const
-
DefaultMetadata.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cdnProvider → String?
-
CDN Provider used to serve content.
If field is specified in SourceMetadata and DefaultMetadata,
SourceMetadata takes precedence.
final
- customData → CustomData
-
Free-form data that can be used to enrich the analytics data.
If customData is specified in SourceMetadata and DefaultMetadata
data is merged on a field basis with SourceMetadata taking precedence.
final
- customUserId → String?
-
Field that can be used to mark a session with the internal User-ID.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited