mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
28 lines
804 B
Dart
28 lines
804 B
Dart
import 'package:managerapi/api.dart';
|
|
|
|
class MapMarker {
|
|
int id;
|
|
String title;
|
|
String description;
|
|
List<ImageGeoPoint> images;
|
|
String latitude;
|
|
String longitude;
|
|
|
|
MapMarker({this.id, this.title, this.description, this.images, 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,
|
|
images: json['image'] as List<ImageGeoPoint>,
|
|
latitude: json['latitude'] as String,
|
|
longitude: json['longitude'] as String,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'MapMarker{id: $id, title: $title, description: $description, images: $images, latitude: $latitude, longitude: $longitude}';
|
|
}
|
|
} |