LoggingConfig class
Represents the configuration for logging.
This class encapsulates settings related to logging, including whether logging is enabled and the logging level. It provides methods for converting between JSON and Dart objects for data persistence and serialization.
Constructors
- LoggingConfig({required bool enableLogging, required String logLevel})
- Creates a LoggingConfig instance.
-
LoggingConfig.fromJson(Map<
String, dynamic> json) -
Creates a LoggingConfig instance from a JSON map.
factory
Properties
- enableLogging → bool
-
Whether logging is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logLevel → String
-
The logging level.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this LoggingConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited