adaptersFromFiles method

String adaptersFromFiles(
  1. Map<String, String> classNamesToFileNames
)

Adapter part imports

Implementation

String adaptersFromFiles(Map<String, String> classNamesToFileNames) => classNamesToFileNames.keys
    .map((k) => "part 'adapters/${StringHelpers.snakeCase(k)}_adapter.g.dart';")
    .join('\n');