GeocodeResult.fromJson constructor

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

Implementation

GeocodeResult.fromJson(Map<String, dynamic> json) {
  if (json['geocodeAddressList'] != null) {
    geocodeAddressList = [];
    json['geocodeAddressList'].forEach((v) {
      geocodeAddressList?.add(GeocodeAddressList.fromJson(v));
    });
  }
  geocodeQuery = json['geocodeQuery'] != null ? GeocodeQuery.fromJson(json['geocodeQuery']) : null;
}