Location.fromJson constructor
Location.fromJson(
- Map<String, dynamic> json
)
Implementation
Location.fromJson(Map<String, dynamic> json) {
accuracy = json['accuracy'];
adCode = json['adCode'];
address = json['address'];
altitude = json['altitude'];
aoiName = json['aoiName'];
bearing = json['bearing'];
buildingId = json['buildingId'];
city = json['city'];
cityCode = json['cityCode'];
coordType = json['coordType'];
country = json['country'];
district = json['district'];
errorCode = json['errorCode'];
errorInfo = json['errorInfo'];
floor = json['floor'];
gpsAccuracyStatus = json['gpsAccuracyStatus'];
isFixLastLocation = json['isFixLastLocation'];
isMock = json['isMock'];
isOffset = json['isOffset'];
latitude = json['latitude'];
locationDetail = json['locationDetail'];
locationQualityReport = json['locationQualityReport'] != null ? LocationQualityReport.fromJson(json['locationQualityReport']) : null;
locationType = json['locationType'];
longitude = json['longitude'];
poiName = json['poiName'];
provider = json['provider'];
province = json['province'];
satellites = json['satellites'];
speed = json['speed'];
street = json['street'];
streetNum = json['streetNum'];
trustedLevel = json['trustedLevel'];
time = json['time'];
}