toJson method
Implementation
Map<String, Object?> toJson() => {
'id': id,
'kind': kind.wire,
'at': at,
if (source != null) 'source': source,
if (item != null) 'item': item,
if (plan != null) 'plan': plan?.wire,
if (amount != null) 'amount': amount,
};