NativeScriptScriptAny.deserialize constructor
NativeScriptScriptAny.deserialize(
- CborListValue cbor
Deserializes a NativeScriptScriptAny from CBOR.
Implementation
factory NativeScriptScriptAny.deserialize(CborListValue cbor) {
NativeScriptUtils.validateCborTypeObject(
cbor.getIndex(0), NativeScriptType.scriptAny);
return NativeScriptScriptAny(cbor
.getIndex<CborListValue>(1)
.value
.map((e) => NativeScript.deserialize(e))
.toList());
}