From f26a7539a5975e474a9c8e2e01e40daa4a97d5f3 Mon Sep 17 00:00:00 2001 From: Simon Leier Date: Thu, 29 Dec 2022 12:29:05 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 430d315..40b9251 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ void main() { That's it! You can now parse and serialize JSON with ease. -### Ignoring fields +## Ignoring fields Annotate properties with `@jsonIgnore` to ignore them: @@ -81,7 +81,7 @@ class Tweet { } ``` -### Renaming fields +## Renaming fields Use the `@JsonName()` annotation to rename individual fields: @@ -128,7 +128,7 @@ enum PlaceType { } ``` -### Custom converters +## Custom converters You can use custom converters to convert between JSON and Dart types. Just create a class that implements `JsonConverter`.