decode static method

PolygonAnnotation decode(
  1. Object result
)

Implementation

static PolygonAnnotation decode(Object result) {
  result as List<Object?>;
  return PolygonAnnotation(
    id: result[0]! as String,
    geometry: result[1]! as Polygon,
    fillConstructBridgeGuardRail: result[2] as bool?,
    fillSortKey: result[3] as double?,
    fillBridgeGuardRailColor: result[4] as int?,
    fillColor: result[5] as int?,
    fillOpacity: result[6] as double?,
    fillOutlineColor: result[7] as int?,
    fillPattern: result[8] as String?,
    fillTunnelStructureColor: result[9] as int?,
    fillZOffset: result[10] as double?,
    isDraggable: result[11] as bool?,
    customData:
        (result[12] as Map<Object?, Object?>?)?.cast<String, Object>(),
  );
}