Skip to content

Commit

Permalink
fix the top level methods gen
Browse files Browse the repository at this point in the history
  • Loading branch information
X-SLAYER committed Jan 29, 2024
1 parent 5ea52d4 commit cf807e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/utils/CustomDartRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,11 @@ export class DartRenderer extends ConvenienceRenderer {
protected emitSourceStructure(): void {
this.emitFileHeader();

if (!this._options.justTypes && !this._options.codersInClass) {
if (
!this._options.justTypes &&
!this._options.codersInClass &&
this._options.generateToJson
) {
this._emitTopLvlEncoderDecoder();
}

Expand Down

0 comments on commit cf807e4

Please sign in to comment.