parse static method

InstantMessage? parse(
  1. Object? msg
)

Parse a raw object into an InstantMessage instance.

msg is the raw message data (map, JSON string, etc.).

Returns a parsed InstantMessage instance, or null if parsing fails.

Implementation

static InstantMessage? parse(Object? msg) {
  final helper = sharedMessageExtensions.instantHelper;
  return helper!.parseInstantMessage(msg);
}