ModelGenerator class

Constructors

ModelGenerator(String _rootClassName, [bool _privateFields = false, dynamic hints])

Properties

allClasses List<ClassDefinition>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hints List<Hint>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sameClassMapping Map<String, String>
final

Methods

generateDartClasses(String rawJson) DartCode
generateDartClasses will generate all classes and append one after another in a single string. The rawJson param is assumed to be a properly formatted JSON string. If the generated dart is invalid it will throw an error.
generateUnsafeDart(String rawJson) DartCode
generateUnsafeDart will generate all classes and append one after another in a single string. The rawJson param is assumed to be a properly formatted JSON string. The dart code is not validated so invalid dart code might be returned
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited