Uploaded April 2018 | Updated November 2026, 2 hours ago
Gson is an open-source JSON library which aims to be simple and quick to use while providing a bunch of options to accommodate even some complex use cases.
In this tutorial you're going to learn how to serialize and parse interfaces to JSON strings. An interface cannot be instantiated so we need to somehow remember the the class which implements our interface and instantiate this class directly. GSON lets us do it in an elegant and simple way.
Gson library: github.com/google/gson
Get the code written in this tutorial: wp.me/p8jOJP-8S
Go to my website for more information, code examples and articles:
● resocoder.com
Follow me on social media:
● facebook.com/resocoder
● twitter.com/resocoder
Gson is an open-source JSON library which aims to be simple and quick to use while providing a bunch of options to accommodate even some complex use cases.
In this tutorial you're going to learn how to serialize and parse interfaces to JSON strings. An interface cannot be instantiated so we need to somehow remember the the class which implements our interface and instantiate this class directly. GSON lets us do it in an elegant and simple way.
Gson library: github.com/google/gson
Get the code written in this tutorial: wp.me/p8jOJP-8S
Go to my website for more information, code examples and articles:
● resocoder.com
Follow me on social media:
● facebook.com/resocoder
● twitter.com/resocoder

![Flutter TDD Clean Architecture Course [3] – Domain Layer Refactoring
📗 Learn from the written tutorial 👇👇
https://resocoder.com/flutter-tdd-clean-architecture-ep3
👨💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
The Number Trivia App is moving along nicely. In the previous part, we created an Entity, Repository contract, and the first Use Case - GetConcreteNumberTrivia using test-driven development. Today, were going to add another Use Case which will uncover a nice opportunity for refactoring the code.
Go to my website for more information, code examples, and articles:
● https://resocoder.com
Follow me on social media:
● https://instagram.com/resocoder
● https://www.facebook.com/resocoder
● https://twitter.com/resocoder Flutter TDD Clean Architecture Course [3] – Domain Layer Refactoring](https://i.ytimg.com/vi/Mmq72a0h4jk/mqdefault.jpg)






![Flutter Firebase & DDD Course [18] - Note Form Bloc
📗 Get the code 👇👇
https://github.com/ResoCoder/flutter-ddd-firebase-course
📧 Get Flutter news 📰 and resources:
👉 http://flutter.education
👨💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
Theres only one thing left before creating the UI for displaying, creating and updating notes. We need to finish the application layer by creating a NoteFormBloc.
Go to my website for more information, code examples, and articles:
● https://resocoder.com
Follow me on social media:
● https://instagram.com/resocoder
● https://www.facebook.com/resocoder
● https://twitter.com/resocoder Flutter Firebase & DDD Course [18] - Note Form Bloc](https://i.ytimg.com/vi/QjPuAHttTIo/mqdefault.jpg)

