decode static method Null safety

PolygonAnnotationOptions decode(
  1. Object message
)

Implementation

static PolygonAnnotationOptions decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return PolygonAnnotationOptions(
    geometry: (pigeonMap['geometry'] as Map<Object?, Object?>?)
        ?.cast<String?, Object?>(),
    fillSortKey: pigeonMap['fillSortKey'] as double?,
    fillColor: pigeonMap['fillColor'] as int?,
    fillOpacity: pigeonMap['fillOpacity'] as double?,
    fillOutlineColor: pigeonMap['fillOutlineColor'] as int?,
    fillPattern: pigeonMap['fillPattern'] as String?,
  );
}