encodeProgress function

Object? encodeProgress(
  1. Progress progress
)

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},
};