Micromoment class

Anagog SDK MicroMoment object, represents campaign Micromoment event which app can pass to SDK identifier Micromoment identifier such as: 'Registration' textParameters A Map of Micromoment textParameters such as: {'Status': 'Completed'} numericParameters A Map of Micromoment numeric values such as: {'Score': 150} locationParameters A Map of Micromoment Location values such as: {'Home': Location(latitude: 32.5, longitude: 34.6)}

Constructors

Micromoment({required String identifier, Map<String, String> textParameters = const {}, Map<String, double> numericParameters = const {}, Map<String, Location> locationParameters = const {}, required Map<String, bool> booleanParameters})
Micromoment.fromJson(Map<String, dynamic> json)
factory

Properties

booleanParameters Map<String, bool>
final
hashCode int
The hash code for this object.
no setteroverride
identifier String
final
locationParameters Map<String, Location>
final
numericParameters Map<String, double>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textParameters Map<String, String>
final

Methods

copyWith({String? identifier, Map<String, String>? textParameters, Map<String, double>? numericParameters, Map<String, Location>? locationParameters, Map<String, bool>? booleanParameters}) Micromoment
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