getBodyClass method

String getBodyClass(
  1. String apiClassName,
  2. bool bodyList
)

Implementation

String getBodyClass(String apiClassName, bool bodyList) {
  if (bodyList) {
    return 'List<${apiClassName}Body>';
  } else {
    return '${apiClassName}Body';
  }
}