ElModel constructor
const
ElModel({})
生成通用的操作数据模型方法:json序列化、copyWith对象克隆等...
注意:生成的代码是根据默认的构造函数参数决定的,构造参数必须是命名构造, 同时字段参数必须通过 this 或 super 指定,不能存在自命名参数,否则生成的代码会出现错误。
Implementation
const ElModel({
this.formJson = false,
this.toJson = false,
this.copyWith = false,
this.merge = false,
this.generateEquals = false,
this.generateHashCode = false,
this.generateToString = false,
this.fromJsonDiff = false,
this.toJsonUnderline = false,
});