getViewFromViewModelType<T extends ViewModel> method

String getViewFromViewModelType<T extends ViewModel>()
override

returns a string view name or round name based on a viewmodel type.

Implementation

String getViewFromViewModelType<T extends ViewModel>() {
  String typeName = Utilities.typeOf<T>().toString();

  return typeName.replaceAll('ViewModel', 'View');
}