decode static method Null safety

CoordinateBounds decode(
  1. Object message
)

Implementation

static CoordinateBounds decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return CoordinateBounds(
    southwest: (pigeonMap['southwest'] as Map<Object?, Object?>?)!
        .cast<String?, Object?>(),
    northeast: (pigeonMap['northeast'] as Map<Object?, Object?>?)!
        .cast<String?, Object?>(),
    infiniteBounds: pigeonMap['infiniteBounds']! as bool,
  );
}