ElModel.json constructor

const ElModel.json({
  1. bool formJson = true,
  2. bool toJson = true,
  3. bool copyWith = false,
  4. bool merge = false,
  5. bool generateEquals = false,
  6. bool generateHashCode = false,
  7. bool generateToString = false,
  8. bool fromJsonDiff = false,
  9. bool toJsonUnderline = false,
})

生成 formJson、toJson、equals、hashCode 方法

Implementation

const ElModel.json({
  this.formJson = true,
  this.toJson = true,
  this.copyWith = false,
  this.merge = false,
  this.generateEquals = false,
  this.generateHashCode = false,
  this.generateToString = false,
  this.fromJsonDiff = false,
  this.toJsonUnderline = false,
});