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