toJson method
Implementation
@override
Map<String, dynamic> toJson(UGetMessageContextMessage object) => object.when(
messageView: const MessageViewConverter().toJson,
deletedMessageView: const DeletedMessageViewConverter().toJson,
unknown: (data) => data,
);