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:

  • noDependsEnabled — disables all imports when true
  • doNotWithPatterns — defines forbidden dependency patterns
  • justWithPatterns — defines allowed dependency patterns
  • filePattern — defines which files the rule applies to

Constructors

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