Skip to content

Commit 16c629e

Browse files
ChiragAgg5kclaude
andcommitted
Add @OverRide annotation to toMap method in Dart models
Added @OverRide annotation to the toMap() method in model template to properly indicate that it overrides the Model interface method, resolving the annotate_overrides lint warning. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c30701f commit 16c629e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/dart/lib/src/models/model.dart.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
5959
);
6060
}
6161

62+
@override
6263
Map<String, dynamic> toMap() {
6364
return {
6465
{% for property in definition.properties %}

0 commit comments

Comments
 (0)