Config constructor

const Config({
  1. String? serializerSuffix,
  2. String? graphqlTypeSuffix,
  3. String? unionKeySuffix,
  4. String? graphQLFieldSuffix,
  5. bool? nullableFields,
  6. bool? omitFields,
  7. bool? omitPrivateFields,
  8. List<String>? omitFieldsNamed,
  9. String? instantiateCode,
  10. required List<CustomTypes> customTypes,
  11. EnumNameCase? enumValuesCase,
})

Implementation

const Config({
  String? serializerSuffix,
  String? graphqlTypeSuffix,
  String? unionKeySuffix,
  String? graphQLFieldSuffix,
  bool? nullableFields,
  bool? omitFields,
  bool? omitPrivateFields,
  List<String>? omitFieldsNamed,
  this.instantiateCode,
  required this.customTypes,
  this.enumValuesCase,
})  : serializerSuffix = serializerSuffix ?? 'Serializer',
      graphqlTypeSuffix = graphqlTypeSuffix ?? 'GraphQLType',
      unionKeySuffix = unionKeySuffix ?? 'Discriminant',
      graphQLFieldSuffix = graphQLFieldSuffix ?? 'GraphQLField',
      nullableFields = nullableFields ?? false,
      omitFields = omitFields ?? false,
      omitPrivateFields = omitPrivateFields ?? true,
      omitFieldsNamed = omitFieldsNamed ??
          const ['toJson', 'toString', 'compareTo', 'toMap'];