parse static method

Envelope? parse(
  1. Object? env
)

Parse a raw object into an Envelope instance.

env is the raw envelope data (map, JSON string, etc.).

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

Implementation

static Envelope? parse(Object? env) {
  final helper = sharedMessageExtensions.envelopeHelper;
  return helper!.parseEnvelope(env);
}