JsonDef class
Parses JSON data and generates Dart class definitions.
Constructors
- JsonDef({String? rootClassName, dynamic jsonData, required bool rootClassNameWithPrefixSuffix, ClassNamePrefixSuffixBuilder? classNamePrefixSuffixBuilder})
-
Creates a JsonDef from the given
jsonData.
Properties
-
allCustomObject
→ List<
ValueDef> -
All custom object definitions found in the JSON structure.
no setter
- classCode → String
-
Returns the generated Dart class code.
no setter
- customObjectString → String
-
Returns the generated Dart code string for all custom objects.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsonData → dynamic
-
The raw JSON data to generate classes from.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structString → String
-
Returns a string representation of the parsed JSON structure.
no setter
- summarizeString → String
-
Returns a summarized string representation of the structure.
no setter
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