SafeJsonConfig class
Configuration annotation for the entire safe JSON parsing system
Add this to your main() or configure globally to customize behavior.
Example:
@SafeJsonConfig(
enableGlobalInterception: true,
logParsingErrors: true,
generateDebugInfo: true,
)
void main() {
runApp(MyApp());
}
Constructors
- SafeJsonConfig({bool enableGlobalInterception = false, bool logParsingErrors = false, bool generateDebugInfo = true, String errorPrefix = '🚨 JSON Parsing Error'})
-
const
Properties
- enableGlobalInterception → bool
-
Whether to enable global JSON parsing error interception
final
- errorPrefix → String
-
Custom error message prefix
final
- generateDebugInfo → bool
-
Whether to generate additional debug information in error messages
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logParsingErrors → bool
-
Whether to log parsing errors to console (useful for debugging)
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited