Converts this summary item object into a JSON-encodable format.
Map<String, dynamic> toJson() => { 'label': label, 'amount': amount, 'type': type.rawValue, };