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: Serialized instant message data (matches format in InstantMessage)

Returns: InstantMessage instance if parsing succeeds, null otherwise

Implementation

InstantMessage? parseInstantMessage(Mapping msg);