toMap method

Map<String, Object?> toMap()

This target in the channel's wire shape.

Implementation

Map<String, Object?> toMap() => {
  'id': id,
  'label': label,
  'iconPath': iconPath,
};