R/serialize.R
as.list.typed_instance.Rd
Convert an instance to a list
# S3 method for class 'typed_instance' as.list(x, ...)
An instance.
Ignored.
A named list.
as.list(struct("Rgb", r = int[1], g = int[1], b = int[1])(r = 1, g = 2, b = 3)) #> $r #> [1] 1 #> #> $g #> [1] 2 #> #> $b #> [1] 3 #>