Datagen constructor

const Datagen({
  1. bool copyWith = true,
  2. bool fromJson = true,
  3. bool fromJsonList = true,
  4. bool toJson = true,
  5. bool stringify = true,
  6. bool equality = true,
  7. bool omitFactory = true,
})

Creates a Datagen annotation with optional flags. All options default to true.

Implementation

const Datagen({
  this.copyWith = true,
  this.fromJson = true,
  this.fromJsonList = true,
  this.toJson = true,
  this.stringify = true,
  this.equality = true,
  this.omitFactory = true,
}) : assert(fromJsonList ? fromJson : true);