GEntity class

Constructors

GEntity({required String json, bool auto = true, bool enable = true})
使用示例 @GEntity(json: ''' { "name": "爸爸", "age": 30, "wife": { "name": "妈妈", "age": 28, "beautiful": true }, "childList": { "name": "孩子1", "age": 1, "sex": "男" }, { "name": "孩子2", "age": 2, "sex": "女" } } ''') class JsonEntity {}
const

Properties

auto bool
是否自动生成, 默认会第一次生成之后自动关闭,提高效率
final
dir String?
路径目录
finalinherited
enable bool
final
hashCode int
The hash code for this object.
no setterinherited
json String
json string 严格json数据
final
name String?
文件名
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String?
后缀
finalinherited

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