mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
23 lines
623 B
Dart
23 lines
623 B
Dart
class MapMarker {
|
|
int id;
|
|
String title;
|
|
String description;
|
|
String image;
|
|
String text;
|
|
String latitude;
|
|
String longitude;
|
|
|
|
MapMarker({this.id, this.title, this.description, this.image, this.text, this.latitude, this.longitude});
|
|
|
|
factory MapMarker.fromJson(Map<String, dynamic> json) {
|
|
return new MapMarker(
|
|
id: json['id'] as int,
|
|
title: json['title'] as String,
|
|
description: json['description'] as String,
|
|
image: json['image'] as String,
|
|
text: json['text'] as String,
|
|
latitude: json['latitude'] as String,
|
|
longitude: json['longitude'] as String,
|
|
);
|
|
}
|
|
} |