getEntityClass method

String getEntityClass(
  1. String apiClassName,
  2. bool responseList
)

Implementation

String getEntityClass(String apiClassName, bool responseList) {
  if (responseList) {
    return 'List<${apiClassName}Entity>';
  } else {
    return '${apiClassName}Entity';
  }
}