encodeProgress function
Implementation
Object? encodeProgress(Progress progress) => switch (progress) {
Printed(:final channel, :final text) => {
'kind': 'printed',
'channel': channel.name,
'text': text,
},
ReplyArriving(:final text) => {'kind': 'replyArriving', 'text': text},
};