toMap method
Returns a Map from the current PlacemarkModel.
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'name': name,
'styleId': styleId,
'description': description ?? '',
'icon': icon ?? '',
'visibility': visibility,
'viewOrbit': viewOrbit,
'scale': scale,
'balloonContent': balloonContent,
'lookAt': lookAt?.toMap(),
'point': point?.toMap(),
'line': line!.toMap(),
'tour': tour?.toMap(),
'orbitContent': orbitContent,
};
}