toMap method
Returns the internal map as a Map.
This method provides access to the underlying map data.
@return A Map containing all key-value pairs.
Implementation
@override
MutableMapping toMap() {
// serialize 'icon'
var img = _icon;
if (img != null && !containsKey('icon')) {
this['icon'] = img.serialize();
}
// OK
return super.toMap();
}