final postData = {'token': 'tokenId'};
final header = {'header1key' : 'header1val'};
NetworkAPI().httpPostRequest('getUsers/', headers, postData, (status, response){
if (status == true) {
for (var user in response) {
Users u = Users.fromMap(user);
Users.insert(u); //insert to SQLite table
}
}
else{}
});
-
Notifications
You must be signed in to change notification settings - Fork 1
kattaliraees/flutter-webservice-sample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Flutter HTTP POST/GET - JSON - DataModel -SQLite Sample
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published