R/mzQC.R
fromDatatoMzQCobj.Rd
If you have a list of elements, call fromDatatoMzQC.
fromDatatoMzQCobj(mzqc_class, data)
Prototype of the class to convert 'data' into
A datastructure of R lists/arrays as obtained by 'jsonlite::fromJSON()'
data = MzQCcvParameter$new("acc", "myName", "value")
data_recovered = fromDatatoMzQCobj(MzQCcvParameter, jsonlite::fromJSON(jsonlite::toJSON(data)))
data_recovered
#> Reference class object of class "MzQCcvParameter"
#> Field "accession":
#> [1] "acc"
#> Field "name":
#> [1] "myName"
#> Field "value":
#> [1] "value"
#> Field "description":
#> [1] NA