MessageMetaData class

Represents metadata for a message.

This class is used to encapsulate key-value pairs that provide additional information about a message. It can be used for various purposes such as indicating message status, categorization, or any other metadata.

Available extensions

Constructors

MessageMetaData({required String key, required String value})
Initializes a new instance of the MessageMetaData class.
MessageMetaData.fromJson(Map<String, dynamic> json)
Converts a JSON object into a MessageMetaData object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The key of the metadata.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The value of the metadata.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a MessageMetaData object into a JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited