toJson method

Map<String, dynamic> toJson()

Converts an IdentifierMetaData instance to a JSON map.

This method serializes an IdentifierMetaData instance into a map structure that can easily be converted to JSON. It is useful for storing or transmitting identifiable metadata in a JSON format.

Returns: A map representing the serialized form of the IdentifierMetaData instance.

Implementation

Map<String, dynamic> toJson() => {
      "key": key,
      "value": value,
    };