Skip to content

Commit 5c3e989

Browse files
committed
add note to readme
1 parent 1c5b401 commit 5c3e989

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/language/macros.md

+6
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@ You can search "`DiagnosticMessage`" in the [the definition of `JsonCodable`][js
137137
for other errors the macro will throw. For example, extending a class that isn't
138138
also serializable, or if field names don't exactly match the key names in the given JSON.
139139

140+
:::note
141+
To learn more about using the `JsonCodable` macro, like supported field types,
142+
treatment of null and generics, and more, check out [the README][].
143+
:::
144+
140145
[the definition of `JsonCodable`]: {{site.repo.dart.sdk}}/blob/master/pkg/json/lib/json.dart
146+
[the README]: https://github.com/dart-lang/sdk/blob/main/pkg/json/README.md
141147

142148
## The macros language feature
143149

0 commit comments

Comments
 (0)