JsonConverter class
A utility class that converts JSON configuration data into EagleEyeConfig and EagleEyeConfigItem objects.
The JsonConverter is responsible for parsing the eagle_eye_config.json
file and safely mapping its contents into structured models used by
the Eagle Eye rule enforcement system.
It supports the following keys:
dependenciesAllowed— disables all imports whenfalseforbiddenDependencies— defines forbidden dependency patternsexclusiveDependencies— defines allowed dependency patternsfilePattern— defines which files the rule applies toname— optional human-readable rule name
Constructors
- JsonConverter({required ConfigItemMapper mapper})
- Creates a new JsonConverter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convert(
String jsonText) → EagleEyeConfig -
Converts a JSON string (
jsonText) into an EagleEyeConfig object. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited