SchemaSync constructor
SchemaSync(
- GraphQLGenConfig config,
- GqlSchema schema, {
- String root = '.',
- bool regenerate = false,
Implementation
SchemaSync(
this.config,
this.schema, {
this.root = '.',
this.regenerate = false,
}) : layout = Layout(config),
types = TypeMapper(schema, config) {
models = ModelTemplate(
config,
types,
convertersImport: config.packageImport(
p.join(config.output, config.fileName(GeneratedFile.enumConverters)),
),
);
singles = SingleFileTemplates(config, schema, types);
}