getNestedFactoryClasses method

String getNestedFactoryClasses()

Implementation

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