Skip to content

Commit 10e7d6c

Browse files
authored
Merge pull request #1209 from appwrite/fix-flutter-override-annotation-tomap
Add @OverRide annotation to toMap method in Dart models
2 parents 9c9865c + 16c629e commit 10e7d6c

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)