Files
rogaining_app/lib/models/rog_event_model.dart
2022-02-08 16:16:13 +05:30

27 lines
455 B
Dart

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