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

preview_player
Показать описание
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 🥰)

Convert JSON into gorgeous, typesafe code in any language.

References:
----------------------------------------------------------------------------
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!

📚 PROMOS
Get an exclusive 10% discount on every GeeksforGeeks course!!
Use code: ADITYAT

💰 INVESTMENT APPS

Want to talk business? Or ask a question?
----------------------------------------------------------------------------

Become a part of my community! (450+ Developers already 🥰)
Рекомендации по теме
Комментарии
Автор

Thanks for the amazing explanation. Please make a video on the structure of the project with API and some advanced API stuff like tokens and serialization etc.

marufhassan
Автор

Request for state management using bloc and all the other

gpswlqp
Автор

Hey! Liked how you make the concepts which are tricky so easy with your explanations. Do a next video of Integrating Complex JSON API which have null values and display it in Future Builder.

amanmishra
Автор

😍 Thanks brother for such a good explanation.Love from Pakistan 💗

AzfarRehmanV
Автор

hey, can you create video in depth about testing for flutter?

bikerboyankush
Автор

Can I directly apply api's in app? is it secure from reverse engineer?

sivaram
Автор

can i have the github link for this files

someshwarsharma