toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['callbackTime'] = this.callbackTime;
  data['locationTime'] = this.locationTime;
  data['locationType'] = this.locationType;
  data['latitude'] = this.latitude;
  data['longitude'] = this.longitude;
  data['accuracy'] = this.accuracy;
  data['altitude'] = this.altitude;
  data['bearing'] = this.bearing;
  data['speed'] = this.speed;
  data['country'] = this.country;
  data['province'] = this.province;
  data['city'] = this.city;
  data['district'] = this.district;
  data['street'] = this.street;
  data['streetNumber'] = this.streetNumber;
  data['cityCode'] = this.cityCode;
  data['adCode'] = this.adCode;
  data['address'] = this.address;
  data['description'] = this.description;
  data['errorCode'] = this.errorCode;
  data['errorInfo'] = this.errorInfo;
  return data;
}