toValue method
Implementation
@override
FutureOr<ASTValue<dynamic>> toValue(VMContext context, Object? v) {
if (v is ASTValue && v.type == this) {
return v;
}
if (v is ASTValue) {
return v.getValue(context).resolveMapped((v) {
return ASTValue.from(this, v);
});
}
return ASTValue.from(this, v);
}