rawClassName property

String get rawClassName

Implementation

String get rawClassName {
  final words = split(RegExp('(?=[A-Z])'));
  // ignore: cascade_invocations
  words.removeWhere((w) {
    if (w == 'Service' || w == 'Services') {
      return true;
    }
    if (w == 'Enum' || w == 'Enums') {
      return true;
    }
    if (w == 'Constant' || w == 'Constants') {
      return true;
    }
    if (w == 'Response') {
      return true;
    }
    if (w == 'Request') {
      return true;
    }
    return false;
  });
  final rawClassName = words.join();
  return rawClassName;
}