parseContent abstract method

Content? parseContent(
  1. Object? content
)

Parses raw content data into a strongly-typed Content instance.

Converts arbitrary raw content data (e.g., map, JSON string) into a valid Content object based on the registered factories for the message type.

content is the raw content data to parse.

Returns a parsed Content instance (null if parsing fails or no factory exists).

Implementation

Content? parseContent(Object? content);