PlacemarkModel.fromMap constructor
Returns a PlacemarkModel from the given map
.
Implementation
factory PlacemarkModel.fromMap(Map<String, dynamic> map) {
return PlacemarkModel(
id: map['id'],
styleId: map['styleId'],
name: map['name'],
description: map['description'],
icon: map['icon'],
balloonContent: map['balloonContent'],
visibility: map['visibility'],
viewOrbit: map['viewOrbit'],
scale: map['scale'],
lookAt: map['lookAt'] != null ? LookAtModel.fromMap(map['lookAt']) : null,
point: PointModel.fromMap(map['point']),
line: LineModel.fromMap(map['line']),
tour: map['tour'] != null ? TourModel.fromMap(map['tour']) : null,
orbitContent: map['orbitContent'],
);
}