decode method Null safety

WebImage decode(
  1. Object message
)

Implementation

static WebImage decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return WebImage(
    url: pigeonMap['url'] as String?,
  );
}