toJson method

Map toJson()

Implementation

Map toJson() => {'amount': _amount, 'unit': _unit.toString()};