FeaturesConfig class
Represents the configuration for feature flags and beta features.
This class encapsulates settings related to enabling or disabling specific features within the application. It provides methods for converting between JSON and Dart objects for data persistence and serialization.
All fields in this class are nullable, allowing for flexibility in configuration and handling of missing values.
Constructors
- FeaturesConfig({bool? enableBetaFeatures, bool? featureFlag, bool? featureOneEnabled, bool? featureTwoEnabled})
- Creates a FeaturesConfig instance.
-
FeaturesConfig.fromJson(Map<
String, dynamic> json) -
Creates a FeaturesConfig instance from a JSON map.
factory
Properties
- enableBetaFeatures → bool?
-
Enables or disables beta features.
final
- featureFlag → bool?
-
A general-purpose feature flag.
final
- featureOneEnabled → bool?
-
Enables or disables feature one.
final
- featureTwoEnabled → bool?
-
Enables or disables feature two.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 FeaturesConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited