48 lines
1001 B
Dart
48 lines
1001 B
Dart
|
|
class Rogaining {
|
|
int? rog_id;
|
|
int? course_id;
|
|
int? user_id;
|
|
int? location_id;
|
|
double? lat;
|
|
double? lon;
|
|
int? time_stamp;
|
|
|
|
Rogaining({
|
|
this.rog_id,
|
|
this.course_id,
|
|
this.user_id,
|
|
this.location_id,
|
|
this.lat,
|
|
this.lon,
|
|
this.time_stamp
|
|
});
|
|
|
|
factory Rogaining.fromMap(Map<String, dynamic> json) {
|
|
|
|
return Rogaining(
|
|
rog_id: json['rog_id'],
|
|
course_id: json['course_id'],
|
|
user_id: json['user_id'],
|
|
location_id: json['location_id'],
|
|
lat: json['lat'],
|
|
lon: json['lon'],
|
|
time_stamp: json['time_stamp']
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toMap(){
|
|
return {
|
|
'rog_id':rog_id,
|
|
'course_id': course_id,
|
|
'user_id': user_id,
|
|
'location_id': location_id,
|
|
'lat': lat,
|
|
'lon': lon,
|
|
'time_stamp': time_stamp
|
|
};
|
|
}
|
|
}
|
|
|
|
|