generateAdapter method
Combine relevant serdes generators for output to a single file: the adapter.
Implementation
String generateAdapter(Element element, ConstantReader annotation, BuildStep? buildStep) {
final generators = buildGenerators(element, annotation);
final adapterGenerator = AdapterGenerator(
superAdapterName: superAdapterName,
className: element.name!,
generators: generators,
);
return adapterGenerator.generate();
}