decode static method Null safety

MapAnimationOptions decode(
  1. Object message
)

Implementation

static MapAnimationOptions decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return MapAnimationOptions(
    duration: pigeonMap['duration'] as int?,
    startDelay: pigeonMap['startDelay'] as int?,
  );
}