No video

What is Model Classes? And how to create it 🔥|| Consuming a Rest API🔥 in Flutter

  Рет қаралды 28,095

Dev Stack

Dev Stack

Күн бұрын

Show your support and subscribe to the channel -: devstack.page....
#Flutter #ModelCLasses #RestAPI
In this video, we will see how to handle the JSON data -:
1) Like how to convert the JSON string into a normal object (Get Request)
2) How to access it (To show the data in UI)
3) How we will convert a normal object into JSON String ( Post Request)
Helpful Syntax -:
flutter pub run build_runner build
Pubspec.yaml file -:
dependencies:
cupertino_icons: ^0.1.3
http: ^0.12.2
json_annotation:
dev_dependencies:
build_runner:
json_serializable:
🤩 🤩 Resources
🤝 🤝 Github Repo link -: github.com/Dev...
🤝 🤝 Http Pub package -: pub.dev/packag...
🤝 🤝 Documentation on Model Classes -: flutter.dev/do...
🔥🔥 Flutter Model Class : • Flutter Model Classes ...
🔥🔥 Flutter Chat App : • Flutter Chat-App (What...
🔥🔥 Flutter with Firebase : • Flutter with Firebase ...
🔥🔥 Flutter Blog App : • Blog app backend and f...
🔥🔥 Flutter Random : • Flutter Random Topics
👋 👋 Get the complete source code with some Cookies (You can support me) 🍪
😄 Patreon: / devstack06
😄 Buy me a Cofee: www.buymeacoff...
😄 DM me for UPI number
😋 😋 For more updates Join me on Social media 😋 😋
💻 💻 Twitter -: / devstack06
💻 💻 Instagram -: / devstack06
💻 💻 FB Page-: / devstack06
💻 💻 GitHub-: github.com/Dev...
PLEASE SUBSCRIBE AND SHARE THIS VIDEO!!! 😜 😜
THANKS FOR WATCHING!!! 😋
#Flutter #Firebase #PhoneAuth #Nodejs #Expressjs #TodoApp #flutterdev #fluttercommunity #flutterapp #flutterbygoogle #flutterApps
#Flutter #JsonParsing #ModelClasses #AppDevelopment #Backend #ForntEnd #AppDeveloper #WebDeveloper #FullStack #Developer #Development #WebDevelopment #RestAPI #ImageUpload #RestAPIConnection #Http #NodeJs #ExpressJs #MongoDB #LikeIt #Subscribe
#Share

Пікірлер: 52
@rajadongre4274
@rajadongre4274 3 жыл бұрын
Good explanation. One of the underrated channel❤️
@DevStack
@DevStack 3 жыл бұрын
Thanks raja ❤
@darshankhadse880
@darshankhadse880 3 жыл бұрын
Best one 👌🏻 keep growing
@55ramya55
@55ramya55 2 жыл бұрын
Clear Explanation...loved it..looking forward for more advanced topics
@dcningbo
@dcningbo 2 жыл бұрын
I enjoyed the background music. Thank you.
@surajdevgan4202
@surajdevgan4202 4 жыл бұрын
yes sir, we want full tutorial for parsing json with model class
@DevStack
@DevStack 4 жыл бұрын
Sure working on it :)
@trickswithandro749
@trickswithandro749 Жыл бұрын
Bhai Bhai Bhaiiiiiiiii Jo koi na kr paya wo ap nae kr deya 😀 At last mai be sek gaya api hitting nd model class 🙂
@satdevlpr
@satdevlpr Жыл бұрын
Thanks .. Your way of explaining the concept is awesome... keep it up
@Missponderlit
@Missponderlit 2 жыл бұрын
very good explanation. Thanks so much!
@hashWorld-0
@hashWorld-0 4 ай бұрын
thank u so much
@vikramlimba8
@vikramlimba8 6 ай бұрын
thanks sir
@mustafaninyolu
@mustafaninyolu 3 жыл бұрын
Good explanation, thanks a lot!
@johnlao1469
@johnlao1469 3 жыл бұрын
THANK YOU FOR SAVING MY LIFE SIR YOU ARE TRULY A GOD PROGRAMMER.
@mohamedridzwan762
@mohamedridzwan762 3 жыл бұрын
Very useful channel 👍👍
@mohamedridzwan762
@mohamedridzwan762 3 жыл бұрын
Please do support this channel 💪
@aishvaryrathore4441
@aishvaryrathore4441 3 жыл бұрын
great video thanks:)
@sale7680
@sale7680 Жыл бұрын
It means that we creat model for ache table in backend for getting data ?
@hariprasadhari5045
@hariprasadhari5045 3 жыл бұрын
Thank you for this video
@thazeroword646
@thazeroword646 4 жыл бұрын
Please model and JSON full tutorial... Thanks
@DevStack
@DevStack 4 жыл бұрын
Sure :)
@lorenbeall147
@lorenbeall147 4 жыл бұрын
yes, me too i want like this tutorial
@ravronz9677
@ravronz9677 2 жыл бұрын
Thanks so much bhai
@lorenbeall147
@lorenbeall147 4 жыл бұрын
thank you for thise video
@DevStack
@DevStack 4 жыл бұрын
I am glad it helped you 😇😇😇 Please do #share and #subscribe so this channel will help to other people also :)
@kuldeepsingh-vm8zk
@kuldeepsingh-vm8zk 2 жыл бұрын
awesome bro
@DeshiTraditionReviewer
@DeshiTraditionReviewer Жыл бұрын
Thanks for you video but the api link is not working. Can you check it out?
@kevintailor51
@kevintailor51 4 жыл бұрын
You are using Vysor right? But how is your Vysor video quality that much better??
@DevStack
@DevStack 4 жыл бұрын
It also have option for high resolution
@kevintailor51
@kevintailor51 4 жыл бұрын
@@DevStack But its from Pro version right?
@DevStack
@DevStack 4 жыл бұрын
@@kevintailor51 No
@kevintailor51
@kevintailor51 4 жыл бұрын
@@DevStack Which version are you using? 3.1.0?
@DevStack
@DevStack 4 жыл бұрын
It is latest version 😅
@haiderjaafer8164
@haiderjaafer8164 3 жыл бұрын
hi Dev Stack i am trying to add plugins in pubspec.yaml but it got an error ... Because model_json depends on json_serializable any from sdk which doesn't exist (could not find package json_serializable in the Flutter SDK), version solving failed.
@DevStack
@DevStack 3 жыл бұрын
In the description I provided a documentation link please check that you are using the exact spelling and exact place ( dev dependency or dependency) of your package :)
@haiderjaafer8164
@haiderjaafer8164 3 жыл бұрын
@@DevStack i have solved the pluigin by upgrade flutter to latest version but url is not working
@DevStack
@DevStack 3 жыл бұрын
The endpoint url was the demo purpose only. The code of backend you will get in a github repo (the link of the repo is in the description) you have to run the backend server or else you can use your own api end point :) This video will demonstrate you how you will work with the rest api in flutter
@haiderjaafer8164
@haiderjaafer8164 3 жыл бұрын
Dev Stack so how can create url like that one
@DevStack
@DevStack 3 жыл бұрын
1) Clone the git repo 2) go inside modelserver folder 3) npm install 4) then npm run dev :) But make sure you installed node js and mongodb in your system ;) If you are a linux user then I covered how to install node and mongodb in linux system watch it first :)
@RakeshKumar-ov2pl
@RakeshKumar-ov2pl 3 жыл бұрын
Im new to flutter. I have this very complex api.. Which im not able to parse into dart. Could you help me out with the same?
@etherealcharms
@etherealcharms 3 жыл бұрын
Null error showed up for me. Adding 'required' fixed it. Model({required this.name, required this.phonenumber});
@SaurabhPandey-ww2uq
@SaurabhPandey-ww2uq 3 жыл бұрын
What is your vscode theme?
@hectorprx
@hectorprx 3 жыл бұрын
Thanks
@DevStack
@DevStack 3 жыл бұрын
Happy to help :)
@darshankhadse880
@darshankhadse880 3 жыл бұрын
Hey dev i need your help... I have to upload list of multiple images to api how should i do using multipart http Plz give me solutions i have tried all things
@darshankhadse880
@darshankhadse880 3 жыл бұрын
How to define all urls in one class and pass it to get and lost plz urgent help
@DevStack
@DevStack 3 жыл бұрын
Define an object of url and import it in every places where you want to use
@darshankhadse880
@darshankhadse880 3 жыл бұрын
@@DevStack would you plz give me example
@DevStack
@DevStack 3 жыл бұрын
class UserUrl { static String main="example.com"; String checkexist="$main/users/checkexist/"; String login="$main/users/login/"; String registerVendor="$main/users/registervendor/"; String createstorefront="$main/businesses/createstorefront/"; } Kind of this and import it and use it ( it was old type way of using) But you can follow the new pattern like I used in blog app series (created a network handler)
@szyszak9424
@szyszak9424 Жыл бұрын
music totally unnecesarry in tutorial videos
@hiteshvadoliya2922
@hiteshvadoliya2922 3 жыл бұрын
good try
@saran7403
@saran7403 Жыл бұрын
Hearts
Yum 😋 cotton candy 🍭
00:18
Nadir Show
Рет қаралды 7 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 22 МЛН
REST Call with Flutter - Http methods
19:55
CodeX
Рет қаралды 70 М.
Flutter Model Classes, JSON Model Classes Explained
22:04
The Tech Brothers
Рет қаралды 16 М.
Flutter Class Models Demystified || How to create Models in Flutter
11:17
Techness With Hussain
Рет қаралды 3,1 М.
Flutter Convert JSON to Dart Model Classes
13:33
Coding Orbit
Рет қаралды 16 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 551 М.
Flutter fromJson() to convert json to class object | Dart
3:47
Flutter Http Request And Custom API | In Hindi By Desi Programmer
21:26
Yum 😋 cotton candy 🍭
00:18
Nadir Show
Рет қаралды 7 МЛН