refactor(toObject): Use ReadonlyArray instead of array
refactor(toObject): Use ReadonlyArray instead of array

Use ReadonlyArray instead of array in toObject function output

evanliomain/taninsam,evanliomain/taninsam