decode static method
Implementation
static PointAnnotation decode(Object result) {
result as List<Object?>;
return PointAnnotation(
id: result[0]! as String,
geometry: (result[1] as Map<Object?, Object?>?)?.cast<String?, Object?>(),
image: result[2] as Uint8List?,
iconAnchor:
result[3] != null ? IconAnchor.values[result[3]! as int] : null,
iconImage: result[4] as String?,
iconOffset: (result[5] as List<Object?>?)?.cast<double?>(),
iconRotate: result[6] as double?,
iconSize: result[7] as double?,
symbolSortKey: result[8] as double?,
textAnchor:
result[9] != null ? TextAnchor.values[result[9]! as int] : null,
textField: result[10] as String?,
textJustify:
result[11] != null ? TextJustify.values[result[11]! as int] : null,
textLetterSpacing: result[12] as double?,
textMaxWidth: result[13] as double?,
textOffset: (result[14] as List<Object?>?)?.cast<double?>(),
textRadialOffset: result[15] as double?,
textRotate: result[16] as double?,
textSize: result[17] as double?,
textTransform:
result[18] != null ? TextTransform.values[result[18]! as int] : null,
iconColor: result[19] as int?,
iconHaloBlur: result[20] as double?,
iconHaloColor: result[21] as int?,
iconHaloWidth: result[22] as double?,
iconOpacity: result[23] as double?,
textColor: result[24] as int?,
textHaloBlur: result[25] as double?,
textHaloColor: result[26] as int?,
textHaloWidth: result[27] as double?,
textOpacity: result[28] as double?,
);
}