KnotConfiguration class
Represents the configuration settings for the Knot SDK.
Constructors
-
KnotConfiguration.new({required String sessionId, required String clientId, required Environment environment, required Product product, List<
int> ? merchantIds, List<String> ? domainUrls, bool? useCategories, String? entryPoint, bool? useSearch}) - Constructs a KnotConfiguration with required and optional parameters.
Properties
- clientId → String
-
The client identifier.
final
-
domainUrls
→ List<
String> ? -
A list of allowed domain URLs for the session.
final
- entryPoint → String?
-
The entry point for the session.
final
- environment → Environment
-
The environment in which the SDK is operating.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
merchantIds
→ List<
int> ? -
A list of merchant IDs associated with the configuration.
final
- product → Product
-
The product type used in the SDK.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
The unique session identifier.
final
- useCategories → bool?
-
Whether category-based filtering is enabled.
final
- useSearch → bool?
-
Whether search functionality is enabled.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the KnotConfiguration object to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited