// ignore_for_file: file_names import 'dart:convert'; Geomtry geomtryFromJson(String str) => Geomtry.fromJson(json.decode(str)); String geomtryToJson(Geomtry data) => json.encode(data.toJson()); class Geomtry { Geomtry({ this.location, }); Location? location; factory Geomtry.fromJson(Map json) => Geomtry( location: Location.fromJson(json["location"]), ); Map toJson() => { "location": location, }; } class Location { Location({ this.lat, this.lng, }); double? lat; double? lng; factory Location.fromJson(Map json) => Location( lat: json["lat"].toDouble(), lng: json["lng"].toDouble(), ); Map toJson() => { "lat": lat, "lng": lng, }; }