convertToString method
Implementation
String convertToString({bool camelCase = false}) {
assert(this != null);
assert(_isEnumItem(this), '$this of type ${this.runtimeType.toString()} is not an enum item');
final temp = this.toString().split('.')[1];
return !camelCase ? temp : camelCaseToWords(temp);
}