fromJson static method
Implementation
static SymbolOptions fromJson(Map<dynamic, dynamic> map) {
return SymbolOptions(
iconSize: map['iconSize'] as double?,
iconImage: map['iconImage'] as String?,
iconRotate: map['iconRotate'] as double?,
iconOffset: _offsetFromJson(map['iconOffset']),
iconAnchor: map['iconAnchor'] as String?,
textField: map['textField'] as String?,
textSize: map['textSize'] as double?,
textMaxWidth: map['textMaxWidth'] as double?,
textLetterSpacing: map['textLetterSpacing'] as double?,
textJustify: map['textJustify'] as String?,
textAnchor: map['textAnchor'] as String?,
textRotate: map['textRotate'] as double?,
textTransform: map['textTransform'] as String?,
textOffset: _offsetFromJson(map['textOffset']),
iconOpacity: map['iconOpacity'] as double?,
iconColor: map['iconColor'] as String?,
iconHaloColor: map['iconHaloColor'] as String?,
iconHaloWidth: map['iconHaloWidth'] as double?,
iconHaloBlur: map['iconHaloBlur'] as double?,
textOpacity: map['textOpacity'] as double?,
textColor: map['textColor'] as String?,
textHaloColor: map['textHaloColor'] as String?,
textHaloWidth: map['textHaloWidth'] as double?,
textHaloBlur: map['textHaloBlur'] as double?,
draggable: map['draggable'] as bool?,
geometry: map['geometry'] == null ? null: LatLng._fromJson(map['geometry'] as List<dynamic>)
);
}