Obtain a native JS default value for a ValueModel.
This code assumes defaults have been previously validated (e.g. by model validator). It throws errors for a few
structural issues but generally returns undefined if the model's default value cannot be converted to the correct
type.
Obtain a native JS default value for a ValueModel.
This code assumes defaults have been previously validated (e.g. by model validator). It throws errors for a few structural issues but generally returns undefined if the model's default value cannot be converted to the correct type.