ModelGenerator class

Constructors

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

Properties

allClasses List<ClassDefinition>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hints List<Hint>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 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