toJson method

Map<String, dynamic> toJson()

Converts this summary item object into a JSON-encodable format.

Implementation

Map<String, dynamic> toJson() => {
      'label': label,
      'amount': amount,
      'type': type.rawValue,
    };