Skip to content

Commit ad34d22

Browse files
committed
add an empty constructor body
1 parent e5059f9 commit ad34d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

working/macros/example/lib/json_serializable.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ macro class JsonSerializable
6161
' = ',
6262
await _convertField(field, jsonParam, builder),
6363
]),
64-
]);
64+
], body: FunctionBodyCode.fromString('{}'));
6565
}
6666

6767
// TODO: Support nested List, Map, etc conversion, including deep casting.

0 commit comments

Comments
 (0)