toMap method

Map<String, dynamic> toMap()

Serializes the item for the method channel.

Implementation

Map<String, dynamic> toMap() => {'label': label, 'amount': amount};