OSMData.fromJson constructor

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

Implementation

factory OSMData.fromJson(Map<String, dynamic> json) => OSMData(
    address: json["address"] != null
        ? AddressModel.fromJson(json["address"])
        : null,
    displayName: json['display_name'],
    lat: double.parse(json['lat'] ?? "0.0"),
    lon: double.parse(json['lon'] ?? "0.0"));