LocationInfo.fromJson constructor

LocationInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

LocationInfo.fromJson(Map<String, dynamic> json) {
  callbackTime = json['callbackTime'];
  locationTime = json['locationTime']??json['locTime'];
  locationType = json['locationType'];
  latitude = parseDouble(json['latitude']);
  longitude = parseDouble(json['longitude']);
  accuracy = json['accuracy'];
  altitude = json['altitude'];
  bearing = json['bearing'];
  speed = json['speed'];
  country = json['country'];
  province = json['province'];
  city = json['city'];
  district = json['district'];
  street = json['street'];
  streetNumber = json['streetNumber'];
  cityCode = json['cityCode'];
  adCode = json['adCode'];
  address = json['address'];
  description = json['description'];

  errorCode = json['errorCode'];
  errorInfo = json['errorInfo'];
}