import 'package:geojson/geojson.dart'; import 'package:latlong2/latlong.dart'; class RogEvent{ int? id; String? title; String? venue; DateTime? at_date; List? latlngs; RogEvent({this.id, this.title, this.venue, this.at_date, this.latlngs}); RogEvent.fromId(int id){ this.id = id; } Future fromgeoJson(String geojson) async { final geo = GeoJson(); return await geo.parse(geojson, verbose: true); } }