Never thought I would work on API's ..but when you get a good teacher....everything is so crystalline clear. Sir, keep on bringing more stuff with more projects.
Sir can you make a video on what is model and why it is used and making model of complex and without complex object of an API but without using this plugin It will be much helpful for me sir to understand how things works
if we have a json response start with curly brackets { response:1, code: 200, data: { "id":1, "name": areeba}} like this ... still would this be consider as a list???
ni array [ ] in symbol sy represent hoti ha r array he list hoti ha, please ma phr recommend krun ga ap basic json structure wali video dekhain r usko smhhain warna ap simple c api par bhi struggle karin ge
Sir ya is ma adress wali complete body ko kesy show krwaingy? Jesy street , city, zipcode or suite jo address ki body hy isko hum 1 he dfa ma address ko mention krein or osmy city etc sb show ho jay?
sir g error di raha hae UserModel.fromjson yaha pi from json bilkul nahi ly raha hae,4 bar model ko dobara create kia or github si ap ka model b copy kia phir b nahi ho raha hae
Sir I have a question...why did we use snapshot.data[index].data.title.toString() whereas we have used post[index].title.toString() for the same API in the previous video? and Thank you for the tutorial...respect from Bangladesh
I think both methods are identical and working same the difference only was previously we was first storing data to list them fetching and displaying directly from list But now we are just changed the path of fetching It just thing that I understand may be right may be wrong 🤷
Hi thank you very much for this video, i am getting error "The argument type 'Map' can't be assigned to the parameter type 'Map'." at getUserApi() function where 'userList.add(UserModel.fromJson(i));' can plz give suggest any thing
Bro I am working on a project where I am getting an status video of 429 , where I have the function in that I have for loop in that I have try,catch . In try block I am calling the 3 api of same server but it gives me 429 status code error how to fix. It
@@thetechbrotherss the api has rate limit 2 per second, the first 2 api hits successful,but it gives error for last . I tried using future delay for 1-10 second but nothing worked,
Hello Sir, I'm practicing the same code, but found lot of errors, like. Aik jo JSONtoDart UserModel create kiya wo aik b bijaye 3 additional b generate hogaye khud he. 1. address.dart 2. Company.dart 3. Geo.dart Inhi 3no files mai errors a arahy. like. Address.fromJson(dynamic json) { jab address pr focus kro to error ata (Non-nullable instance field 'city' must be initialized) isi tarah in k sath required missing ka error ata jab k ap k pass aisa kuch nahi araha tha. Address({ this.street, this.suite, this.city, this.zipcode, this.geo,}); sir please guide
Hello asif bhaie , app api k through jab data get karte hien ,our for loop k andher map k sath i lagate hien . Us i ka actual work kia hie , muje i pe eroor ata hie bas .jis ki waja se mn data get nhi kar pa raha. For( map i in data ) there..
Sir agr array ka name nahi ho or uska inner ma objects ka keys same ho all objects ma tu model srif aik hi object ka Bana ga or agr same array case ho laikin objects ma nested object ajai tu bhi model first object ka Bana ga plzz answer me
Sir ap se ek request thi sir jo user wali api ap ne yaha call ki he is api ka ap modal per ek video banade pata to chale asi api ka agr khud modal banana hua to kase banayge without plugin please
bro ham local server say data fetch kis trah ker sakty ha eg. koi hosting ya ham khud kay computer ko online rakh kar data ko apis kay throw apni app may show kerwa sakty ha? like a movie app.
source code:
github.com/axiftaj/Flutter-Rest-Api-Tutorials-With-Example
do give a start if it helped.
Sir kisi sy bhi itni achi samajh nahi aye API ki jitni aap sy aye hai
JAZAKAllah sir Bohot shukriya
glad to hear this
Never thought I would work on API's ..but when you get a good teacher....everything is so crystalline clear. Sir, keep on bringing more stuff with more projects.
Glad to hear that, bro do subscribe and share with your friends
Thank You Sir as Always Keep it Up waiting for ChatApp from Scratch like this
your explanation Method is Superb
Sure, do subscribe and share with your friends.
Must watch video for freshers.. Great going brother 😀
Thank you so much 😀
Great work brother keep it up full support to you brother
thank you
very very useful video at all... .thanks a lot.
You are most welcome, do like and share with your friends
Sir can you make a video on what is model and why it is used and making model of complex and without complex object of an API but without using this plugin
It will be much helpful for me sir to understand how things works
Ok sure subscribe and share with your friends
Great work.! Thank You Taj bhai. Really Enjoyed.
Glad it helped, please share with your friends so most can make most out of it.
great initiative sir... keep making videos for begginers like me
Thank you, i will post more content in future.
Very amazing and Interesting Video Sir!
Thank you do subscribe and share with your friends.
It shows te following error. When i use Usermodel. Fromjson(i) ;
In for loop.
Error.
The argument type
Its not error it’s pretty much clear your model has different variables go and change it to dynamic
i also facing this ,,how u resolved this?
HI thank you very much for this video, can plz make a video on listing of items with pagination while scrolling down
ok
Text(snapshot.data![index].address!.city.toString()), sir what is this ! sign used for for null safety we use string?
! sign means data cannot be null
great work sir
Thank you
awesome explaination..
Thank you do subscribe and share with your friends.
Very good video..i liked this video and subscribe the channel.
Thank you sir
very helpful Sir
Glad to hear that
if we have a json response start with curly brackets { response:1, code: 200, data: { "id":1, "name": areeba}} like this ... still would this be consider as a list???
ni array [ ] in symbol sy represent hoti ha r array he list hoti ha, please ma phr recommend krun ga ap basic json structure wali video dekhain r usko smhhain warna ap simple c api par bhi struggle karin ge
@@thetechbrotherss ok ok Thankyou
Sir ya is ma adress wali complete body ko kesy show krwaingy?
Jesy street , city, zipcode or suite jo address ki body hy isko hum 1 he dfa ma address ko mention krein or osmy city etc sb show ho jay?
Full video dekho mainy sekhaya ha kaise kro gy
Tq for making this video bro 🙏🙏😇😇😇😇😇
Thank you do subscribe and share with your friends.
@@thetechbrotherss ofcourse bro 😃
sir g error di raha hae UserModel.fromjson yaha pi from json bilkul nahi ly raha hae,4 bar model ko dobara create kia or github si ap ka model b copy kia phir b nahi ho raha hae
Please follow with me carefully you must be doing something wrong or always comment the error for exact answer
Sir I have a question...why did we use snapshot.data[index].data.title.toString() whereas we have used post[index].title.toString() for the same API in the previous video? and Thank you for the tutorial...respect from Bangladesh
To be honest i don't remember now, i created this video long ago, but i must have explain this in the whole playlist
I think both methods are identical and working same the difference only was previously we was first storing data to list them fetching and displaying directly from list
But now we are just changed the path of fetching
It just thing that I understand may be right may be wrong 🤷
Hi thank you very much for this video, i am getting error "The argument type 'Map' can't be assigned to the parameter type 'Map'." at getUserApi() function where 'userList.add(UserModel.fromJson(i));' can plz give suggest any thing
go to model and change string to dynamic from this 'Map to this 'Map'
@@thetechbrotherss thank you so much
Awesome Bro...
Bro I am working on a project where I am getting an status video of 429 , where I have the function in that I have for loop in that I have try,catch .
In try block I am calling the 3 api of same server but it gives me 429 status code error how to fix. It
bro this is an error from server side, only backend developer can fix
@@thetechbrotherss the api has rate limit 2 per second, the first 2 api hits successful,but it gives error for last . I tried using future delay for 1-10 second but nothing worked,
Sir can you please tell me that why we used async snapshot at 11:56 because in previous two tutorials we didnt used it
even if we didn't used it it's an async because it's future
@@thetechbrotherss ok sir
Hello Sir,
I'm practicing the same code, but found lot of errors, like.
Aik jo JSONtoDart UserModel create kiya wo aik b bijaye 3 additional b generate hogaye khud he.
1. address.dart
2. Company.dart
3. Geo.dart
Inhi 3no files mai errors a arahy. like.
Address.fromJson(dynamic json) {
jab address pr focus kro to error ata (Non-nullable instance field 'city' must be initialized)
isi tarah in k sath required missing ka error ata jab k ap k pass aisa kuch nahi araha tha.
Address({
this.street,
this.suite,
this.city,
this.zipcode,
this.geo,});
sir please guide
same issue
same issue
Plugin ke liye bhi thanks ...
Thank you
Hello asif bhaie , app api k through jab data get karte hien ,our for loop k andher map k sath i lagate hien . Us i ka actual work kia hie , muje i pe eroor ata hie bas .jis ki waja se mn data get nhi kar pa raha.
For( map i in data ) there..
Yeah loop chalta ha to store data in list r phr hm list ko show krwaty ha front end par
@@thetechbrotherss sir app quran api pe 1 video bana sakte hien plzz , jis me different apis use howe hote hien like for surahs ,ayahs and parahs
Asif bhai mera yeh perform hora hai 'CircularProgressIndicator(); ' laikin iskai baad white screen hai or name ,address user id nahi perform hore hain
Chek api response in postman then check in your app and print snapshots for debugging
@@thetechbrotherss jazak Allah done
Sir agr array ka name nahi ho or uska inner ma objects ka keys same ho all objects ma tu model srif aik hi object ka Bana ga or agr same array case ho laikin objects ma nested object ajai tu bhi model first object ka Bana ga plzz answer me
muje ap ka question smjh ni aya
Sir ap se ek request thi sir jo user wali api ap ne yaha call ki he is api ka ap modal per ek video banade pata to chale asi api ka agr khud modal banana hua to kase banayge without plugin please
Agy agy jao sub kuch sekhaya ha
@@thetechbrotherss ok
Salam sir ham na yaha par future builder ma Asyncsnapshot
q k hm list ko build kr rahy ha is liye
I do the same but I don't know why maine jo list create ki hai wo 4 times repeat ho rahi hai
Do clear the list when you before fetching it
@@thetechbrotherss Thank you man I got it.
bro ham local server say data fetch kis trah ker sakty ha eg. koi hosting ya ham khud kay computer ko online rakh kar data ko apis kay throw apni app may show kerwa sakty ha?
like a movie app.
local k liye koi local database bna lain
@@thetechbrotherss bro wo kasy bnta ha koi hint da dy
Sir, can you tell me what does mean of null safety?
Means data cannot be null
To make sure we should get a null error we put a value which used when the data is not available
why did we create our own model in previous video when we can do this way.
your must know all the methods, it helps you keep going
❣❤❤
thank you
I wish you had English subtitles
I wish 😢
Assalam Oalikom Sir Agar start object { } sy ho raha tu kasy get kary gy api ko
go ahead i taught it
Sir agar paginate kiya huwa api aa raha ho. to usse kaise flutter me bind kare?
Hello please follow this blog and you have your problem solved.
www.kindacode.com/article/flutter-listview-pagination-load-more/
assalam Oalikom sir
hum har api ko class ka andar define kar sakty hy ka nahi???
g
sir agar plugin kam na kara phair ham kia kara ga
Plugin ka alternative dhondhain ya phr custom code karin channel par
Json to dart
Agar Api response object k sath ho to kya karni chahiye?
watch next videos you will get the answers. Then you don't need the list just create model directly.
@thetechbrotherss Okay, btw the video seems clear with your explanation. Thank you so much for it!
❤️💕🙏
Do subscribe and share it with your friends.
how would you get the api data that is like:
{
"work_experiance": [
{
"id": "111",
"organization": "GEEEEE",
"designation": "Mobile Application Developer",
"duration": "2021-Jan to Present",
"from_exp": "2021-Jan",
"to_exp": "Present",
"description": "Mobile Application Development"
}
],
"skills": [
{
"stdcode": "022",
"skills": "Programming",
"id": "453",
"created_on": "2022-01-08 11:42:06",
"created_by": null,
"updated_on": "2022-01-08 11:42:06",
"updated_by": null
},
{
"stdcode": "022",
"skills": "Mathematics",
"id": "454",
"created_on": "2022-01-08 11:42:06",
"created_by": null,
"updated_on": "2022-01-08 11:42:06",
"updated_by": null
},
{
"stdcode": "022-",
"skills": "Data Analysis",
"id": "455",
"created_on": "2022-01-08 11:42:06",
"created_by": null,
"updated_on": "2022-01-08 11:42:06",
"updated_by": null
}
]
}
Its very easy watch part 11 and tutorial without model fetch api
@@thetechbrotherss thanks alot, you are such a life savior bro
Bhai, is vale video me , har line pe typing mistake ho rahi hai...
koi bat ni hota ha chalta ha
What if objects were different at different index
It doesn’t matter if you understand the json structure
@@thetechbrotherss but how will we access it in a list of the object names are different in every index
I will connect with you on LinkedIn for details
@@thetechbrotherss I am getting this kind of response "top_brands": {
"PEX or Misc": {
"image": "/brand-logo/brands/pex-or-misc.png",
"count": 11214
},
"Baldwin": {
"image": "/brand-logo/brands/baldwin.png",
"count": 3070
},
"Kohler": {
"image": "/brand-logo/brands/kohler-.png",
"count": 2006
},
"Hansgrohe": {
"image": "/brand-logo/brands/hansgrohe.png",
"count": 1622
},
"Nibco": {
"image": "/brand-logo/brands/nibco.png",
"count": 1538
},
"Duravit": {
"image": "/brand-logo/brands/duravit.png",
"count": 1393
},
"American Standard": {
"image": "/brand-logo/brands/american-standard.png",
"count": 1375
},
"Graff": {
"image": "/brand-logo/brands/graff.png",
"count": 1338
},
"Delta": {
"image": "/brand-logo/brands/delta.png",
"count": 1116
},
"Toto": {
"image": "/brand-logo/brands/toto.png",
"count": 1031
}
}
},
{
"vendor_name": "Zoro",
"total_products": 6545,
"total_brands": 139,
"top_brands": {
"Kohler": {
"image": "/brand-logo/brands/kohler-.png",
"count": 483
},
"Delta": {
"image": "/brand-logo/brands/delta.png",
"count": 476
},
"Toto": {
"image": "/brand-logo/brands/toto.png",
"count": 438
},
"Newport Brass": {
"image": "/brand-logo/brands/newport-brass.png",
"count": 435
},
"American Standard": {
"image": "/brand-logo/brands/american-standard.png",
"count": 381
},
"Blanco": {
"image": "/brand-logo/brands/blanco.png",
"count": 356
},
how do I make a list of Image of brands
mtlb without creating models
check video ap ko smjh aa jay ge
make more video
This is a full playlist
Don't work steps😢
Please follow playlist from start for better understanding
Share with your friends
when i try to create user model, it create 3 models extra like website, address, company what I do. I delete and built it again but same issue facing.
I didn't understood
If you are using Android studio extension then just change some settings of that extension while creating JSON TO DART.
@@thetechbrothersshe is telling that after he creates any model with the extension the classes are automatically created in a separate file ,