getNestedModelClasses method

String getNestedModelClasses()

Implementation

String getNestedModelClasses() {
  return where((element) => element.nestedClasses.isNotEmpty)
      .map(
        (e) => e.nestedClasses.map(
          (jsonModel) {
            return modelFromJsonModel(jsonModel, isNested: true);
          },
        ).join('\n\n'),
      )
      .join('\n');
}