How to work with APIs in Flutter? How to parse JSON in Dart and define type-safe model classes?

Published: 02 October 2021
on channel: Aditya Thakur
12,451
238

As developers, we often need to work with APIs, parse JSON responses, and use them in-app. In this video I breakdown how to create type-safe model classes to parse JSON response!

Timestamps:
00:00 Introduction
00:46 What are APIs?
01:15 How to make an API call?
02:07 Ways to parse JSON in Flutter
02:40 Chrome Extension - JSON Viewer Pro
02:58 Anatomy of JSON response
03:47 How to parse JSON manually?
05:30 How to create models in dart?
08:49 Example Weather app for API work
14:05 Using quicktype for creating models
14:42 Using model to access data
15:49 Conclusion

Become a part of my community! (450+ Developers already 🥰)
Link to Discord/Telegram: https://linktr.ee/flutterdev

Convert JSON into gorgeous, typesafe code in any language.
Link: https://quicktype.io/

References:
Article: https://codewithandrea.com/articles/p...
Tutorial: https://www.udemy.com/share/101Xwi3@r...
----------------------------------------------------------------------------
Hey!
I am Aditya Thakur, a Developer and Designer. I make videos on Flutter, Python, and other technologies. I also sometimes take up Profile Building and entrepreneurship!

💙 Learn how to use Flutter with Firebase:    • FlutterFire - Free Firebase for Flutt...  

🎬 Python Debugged Playlist:    • Python Debugged  

📚 PROMOS
Get an exclusive 10% discount on every GeeksforGeeks course!!
Use code: ADITYAT
Check out courses here: https://practice.geeksforgeeks.org/co...

💰 INVESTMENT APPS
Create a free account | Binance: https://accounts.binance.cc/en/regist...
Trade at India’s largest exchange | WazirX: https://wazirx.com/invite/xen3p4h3

I post stories about my life and business on my Instagram -   / adityathakurxd  

Want to talk business? Or ask a question?
Reach out to me on LinkedIn:   / adityathakurxd  
----------------------------------------------------------------------------

Become a part of my community! (450+ Developers already 🥰)
Link to Discord/Telegram: https://linktr.ee/flutterdev