getResponseClass method

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

Implementation

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