first commit
This commit is contained in:
27
lib/models/rog_event_model.dart
Normal file
27
lib/models/rog_event_model.dart
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user