toJson method

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

Implementation

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