expressionWithMLNJSONObject static method
Returns an expression equivalent to the given Foundation object deserialized from JSON data.
The Foundation object is interpreted according to the
MapLibre Style Spec.
See the
“Information for Style Authors”
guide for a correspondence of operators and types between the style
specification and the NSExpression representation used by this SDK.
@param object A Foundation object deserialized from JSON data, for example
using NSJSONSerialization.
@return An initialized expression equivalent to object, suitable for use as
the value of a style layer attribute.
Implementation
static NSExpression expressionWithMLNJSONObject(objc.ObjCObjectBase object) {
objc.checkOsVersionInternal('NSExpression.expressionWithMLNJSONObject:', iOS: (false, (3, 0, 0)), macOS: (false, (10, 4, 0)));
final _ret = _objc_msgSend_1sotr3r(_class_NSExpression, _sel_expressionWithMLNJSONObject_, object.ref.pointer);
return NSExpression.castFromPointer(_ret, retain: true, release: true);
}