toJson method

  1. @override
Map<String, dynamic> toJson(
  1. UGetMessagesMessage object
)

Implementation

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