toMap method
Put all param to a map
Implementation
Map<String, dynamic> toMap() {
final Map<String, dynamic> map = <String, dynamic>{};
putToMapIfNonNull(map, 'panoId', panoId);
putToMapIfNonNull(map, 'position', position?.toJson());
putToMapIfNonNull(map, 'radius', radius);
putToMapIfNonNull(map, 'source', source?.toJson());
putToMapIfNonNull(map, 'panningGesturesEnabled', panningGesturesEnabled);
putToMapIfNonNull(map, 'streetNamesEnabled', streetNamesEnabled);
putToMapIfNonNull(map, 'userNavigationEnabled', userNavigationEnabled);
putToMapIfNonNull(map, 'zoomGesturesEnabled', zoomGesturesEnabled);
map.addAll(panoramaCamera!.toMap());
return map;
}