parseEnvelope abstract method
Parses raw envelope data into a strongly-typed Envelope instance.
Converts arbitrary raw envelope data (e.g., map, JSON string) into a valid Envelope object for consistent message routing.
env is the raw envelope data to parse.
Returns a parsed Envelope instance (null if parsing fails).
Implementation
Envelope? parseEnvelope(Object? env);