ExtractMessageMetaData extension

Provides an extension on MessageMetaData to convert the metadata into a map.

This extension adds functionality to the MessageMetaData class, allowing the metadata to be easily converted into a map. This is particularly useful for serialization or when interfacing with APIs that require data in map form.

on

Methods

toMap() Map<String, dynamic>
Converts a MessageMetaData object into a map.