Assembly: Phoenix.Pacz.dll
FromJson(string)
Reads in a JSON string and creates a ComponentConfig.Parameters
json string
The JSON to read
Returns
ComponentConfig The created ComponentConfigRemarks
This version does not support file variablesExceptions
NotSupportedException If aPhoenix.PaczAPI.IRuntimeVariable.DefaultValue
is of type Phoenix.ModelCenter.Common.Types.FileValue and it contains contents
Exception
If there are any errors converting from JSON
FromJson(string, Func<string, Handle<FileDeleter>>)
Reads in a JSON string and creates a ComponentConfig.Parameters
json string
The JSON to read
fileStore Func<string, Handle<FileDeleter>>
If a Phoenix.PaczAPI.IRuntimeVariable.DefaultValue is of type
FileValue and has contents this function will be called to allow the caller to read
the contents out of bounds from the JSON. The string that was returned from the fileStore
passed to Phoenix.PaczAPI.IReadOnlyComponentConfig.ToJson(System.Func{Phoenix.ModelCenter.Common.Types.FileValue,System.String},System.Boolean) will
be passed to this function and this function is expected to return a handle to a file on
disk to be used by the FileValue.