parseInstantMessage abstract method

InstantMessage? parseInstantMessage(
  1. Mapping msg
)

Parses a serialized Map into an InstantMessage instance.

Validates the structure and converts raw values (e.g., timestamp → DateTime, content map → Content object) to proper types.

msg is the serialized instant message data (matches format in InstantMessage).

Returns an InstantMessage instance if parsing succeeds, null otherwise.

Implementation

InstantMessage? parseInstantMessage(Mapping msg);