ReverseGeocodingResponse.fromJson constructor
Creates a ReverseGeocodingResponse from JSON data.
Implementation
factory ReverseGeocodingResponse.fromJson(Map<String, dynamic> json) {
return ReverseGeocodingResponse(
status: json['status'] as String,
formattedAddress: json['formatted_address'] as String,
routeName: json['route_name'] as String?,
routeType: json['route_type'] as String?,
neighbourhood: json['neighbourhood'] as String?,
city: json['city'] as String,
state: json['state'] as String,
place: json['place'] as String?,
municipalityZone: json['municipality_zone'] as String?,
inTrafficZone: json['in_traffic_zone'] as bool,
inOddEvenZone: json['in_odd_even_zone'] as bool,
village: json['village'] as String?,
county: json['county'] as String?,
district: json['district'] as String?,
);
}