DartCodeGenerator class

dart類別產生器 將json轉為dart code

Constructors

DartCodeGenerator({String? rootClassName, bool rootClassNameWithPrefixSuffix = true, String? classPrefix, String? classSuffix})

Properties

classPrefix String?
類名的前綴
final
classSuffix String?
類名的後綴
final
hashCode int
The hash code for this object.
no setterinherited
rootClassName String?
根類名
final
rootClassNameWithPrefixSuffix bool
根類名是否套用前後綴
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(String rawJson) 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