Rest constructor

const Rest({
  1. String? defaultValue,
  2. bool? enumAsString,
  3. String? fromGenerator,
  4. bool? ignore,
  5. bool? ignoreFrom,
  6. bool? ignoreTo,
  7. String? name,
  8. bool? nullable,
  9. String? toGenerator,
})

Creates a new Rest instance.

Only required when the default behavior is not desired.

Implementation

const Rest({
  this.defaultValue,
  bool? enumAsString,
  this.fromGenerator,
  bool? ignore,
  bool? ignoreFrom,
  bool? ignoreTo,
  this.name,
  bool? nullable,
  this.toGenerator,
})  : enumAsString = enumAsString ?? false,
      ignore = ignore ?? false,
      ignoreFrom = ignoreFrom ?? false,
      ignoreTo = ignoreTo ?? false,
      nullable = nullable ?? false;