Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class APIResponse {
- final String stationName;
- final int pollutionValue;
- final String pollutionMetric;
- APIResponse({this.stationName, this.pollutionValue, this.pollutionMetric});
- factory APIResponse.fromJson(Map<String, dynamic> json) {
- return APIResponse(
- stationName: json['stationName'],
- pollutionValue: json['pollutionValue'],
- pollutionMetric: json['pollutionMetric'],
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement