JsonValidator class
Validates JSON files and data structures
This validator ensures JSON files are properly formatted, accessible, and contain valid data for code generation.
Constructors
- JsonValidator({bool verbose = false})
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateForModelGeneration(
dynamic data) → ValidationResult< void> - Validates that a JSON structure is suitable for model generation
-
validateJsonFile(
String? filePath, {bool allowList = true}) → ValidationResult - Validates a JSON file and returns parsed data
-
validateJsonString(
String jsonString, {bool allowList = true}) → ValidationResult - Validates a JSON string and returns parsed data
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited