-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from aseef17/aseef17/master
API Changes, UI Fixes and Offline Caching
- Loading branch information
Showing
46 changed files
with
2,430 additions
and
486 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,18 @@ | ||
/// [Json2Dart](https://javiercbk.github.io/json_to_dart/) was used to generate the model class | ||
class CountryInformationModel { | ||
String ip; | ||
String countryCode; | ||
String countryName; | ||
String regionCode; | ||
String regionName; | ||
String city; | ||
String zipCode; | ||
String timeZone; | ||
double latitude; | ||
double longitude; | ||
int metroCode; | ||
String country; | ||
|
||
CountryInformationModel( | ||
{this.ip, | ||
this.countryCode, | ||
this.countryName, | ||
this.regionCode, | ||
this.regionName, | ||
this.city, | ||
this.zipCode, | ||
this.timeZone, | ||
this.latitude, | ||
this.longitude, | ||
this.metroCode}); | ||
CountryInformationModel({this.ip, this.country}); | ||
|
||
CountryInformationModel.fromJson(Map<String, dynamic> json) { | ||
ip = json['ip'] as String; | ||
countryCode = json['country_code'] as String; | ||
countryName = json['country_name'] as String; | ||
regionCode = json['region_code'] as String; | ||
regionName = json['region_name'] as String; | ||
city = json['city'] as String; | ||
zipCode = json['zip_code'] as String; | ||
timeZone = json['time_zone'] as String; | ||
latitude = json['latitude'] as double; | ||
longitude = json['longitude'] as double; | ||
metroCode = json['metro_code'] as int; | ||
country = json['country'] as String; | ||
} | ||
|
||
Map<String, dynamic> toJson() { | ||
final Map<String, dynamic> data = Map<String, dynamic>(); | ||
data['ip'] = ip; | ||
data['country_code'] = countryCode; | ||
data['country_name'] = countryName; | ||
data['region_code'] = regionCode; | ||
data['region_name'] = regionName; | ||
data['city'] = city; | ||
data['zip_code'] = zipCode; | ||
data['time_zone'] = timeZone; | ||
data['latitude'] = latitude; | ||
data['longitude'] = longitude; | ||
data['metro_code'] = metroCode; | ||
data['country'] = country; | ||
return data; | ||
} | ||
} |
Oops, something went wrong.