removeSuffixAndCamel method
Implementation
String removeSuffixAndCamel(String value, String suffix) {
if(!value.endsWith(suffix)) {
throw AFException("Expected $value to end with $suffix");
}
final prefix = value.substring(0, value.length-suffix.length);
return toCamelCase(prefix);
}