writeDataClasses method
void
writeDataClasses(})
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,
);
}
}