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