asMap method

Map asMap()

The function returns a map with the values of type, label, action, and parameters.

Implementation

Map asMap() => {'label': _label, 'action': _action, 'params': parameters};