JsonObjectModelGenerator class
JsonObjectModelGenerator takes care of generating the various object models from the json that is found. name is the name of the json file without the extension outputDirectory where the generated models will be put
Constructors
- JsonObjectModelGenerator(String name, {required String outputDirectory, bool allAttributesRequired = false})
Properties
- allAttributesRequired → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imports
↔ List<
String> -
getter/setter pair
- name → String
-
final
- outputDirectory → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convert(
String jsonString) → Future< void> -
Start the conversion process
jsonString
- the json that needs converting as a string -
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