snakeToCamel method
Implementation
String snakeToCamel() {
// Split the input string by underscores
List<String> words = split('_');
// Capitalize the first letter of each subsequent word
String camelCase = "";
for (int i = 0; i < words.length; i++) {
camelCase += words[i].capitalize(); // Capitalize subsequent words
}
return camelCase;
}