toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['accuracy'] = this.accuracy;
data['adCode'] = this.adCode;
data['address'] = this.address;
data['altitude'] = this.altitude;
data['aoiName'] = this.aoiName;
data['bearing'] = this.bearing;
data['buildingId'] = this.buildingId;
data['city'] = this.city;
data['cityCode'] = this.cityCode;
data['coordType'] = this.coordType;
data['country'] = this.country;
data['district'] = this.district;
data['errorCode'] = this.errorCode;
data['errorInfo'] = this.errorInfo;
data['floor'] = this.floor;
data['gpsAccuracyStatus'] = this.gpsAccuracyStatus;
data['isFixLastLocation'] = this.isFixLastLocation;
data['isMock'] = this.isMock;
data['isOffset'] = this.isOffset;
data['latitude'] = this.latitude;
data['locationDetail'] = this.locationDetail;
if (this.locationQualityReport != null) {
data['locationQualityReport'] = this.locationQualityReport?.toJson();
}
data['locationType'] = this.locationType;
data['longitude'] = this.longitude;
data['poiName'] = this.poiName;
data['provider'] = this.provider;
data['province'] = this.province;
data['satellites'] = this.satellites;
data['speed'] = this.speed;
data['street'] = this.street;
data['streetNum'] = this.streetNum;
data['trustedLevel'] = this.trustedLevel;
data['time'] = this.time;
return data;
}