writeDataClasses method

void writeDataClasses(
  1. T generatorOptions,
  2. Root root,
  3. Indent indent, {
  4. required String dartPackageName,
})

Writes all data classes to indent.

Can be overridden to add extra code before/after apis.

Implementation

void writeDataClasses(
  T generatorOptions,
  Root root,
  Indent indent, {
  required String dartPackageName,
}) {
  for (final Class classDefinition in root.classes) {
    writeDataClass(
      generatorOptions,
      root,
      indent,
      classDefinition,
      dartPackageName: dartPackageName,
    );
  }
}