generateClassName function

String generateClassName(
  1. String fileName
)

Implementation

String generateClassName(final String fileName) {
  final name = fileName.replaceAll('.yaml', '');
  return name.split('_').map((final part) => part.capitalize()).join();
}