parseInstantMessage abstract method

InstantMessage? parseInstantMessage(
  1. Object? msg
)

Parses raw instant message data into a strongly-typed InstantMessage instance.

Converts arbitrary raw instant message data (e.g., map, JSON string) into a valid InstantMessage object for consistent message processing.

msg is the raw instant message data to parse.

Returns a parsed InstantMessage instance (null if parsing fails).

Implementation

InstantMessage? parseInstantMessage(Object? msg);