Graphql constructor

const Graphql({
  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. Map<String, Map<String, dynamic>>? subfields,
  10. String? toGenerator,
})

Creates a new Graphql instance.

Only required when the default behavior is not desired.

Implementation

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