decode static method Null safety
- Object result
Implementation
static PolygonAnnotationOptions decode(Object result) {
result as List<Object?>;
return PolygonAnnotationOptions(
geometry: (result[0] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
fillSortKey: result[1] as double?,
fillColor: result[2] as int?,
fillOpacity: result[3] as double?,
fillOutlineColor: result[4] as int?,
fillPattern: result[5] as String?,
);
}