generate method
Complete adapter code, including imports and serialization/deserialization
Implementation
String generate() {
final output = """
// GENERATED CODE DO NOT EDIT
part of '../brick.g.dart';
$serializerFunctions
/// Construct a [$className]
class ${className}Adapter extends ${superAdapterName}Adapter<$className> {
${className}Adapter();
$allInstanceFieldsAndMethods
$allAdapterMethods
}
""";
return _formatter.format(output);
}