toJson method
Die Form des Vertrags (pos-texts.json).
Implementation
Map<String, Object> toJson() => {
'kind': kind.wire,
'codes': ?codes,
if (outcome case final a?) 'outcome': a.name,
if (behavior case final b?) 'behavior': b.wire,
'key': ?key,
};