toMap method
Converts the parameters into a map representation.
Returns a Map object where the keys are the parameter names and the values are their corresponding string representations.
Implementation
@protected
Map<String, String> toMap() {
return {
"key": key,
if (center != null) "center": center!.stringValue,
if (zoom != null) "zoom": "$zoom",
if (mapType != null) "maptype": mapType!.name,
if (language != null) "language": language!,
if (region != null) "region": region!,
};
}