encodeEnvironmentSurrogate

Encode the EnvironmentSurrogate to a JSON string using the EnvironmentSurrogate.polymorphicSerializer to serialize the concentrations.

Return

the JSON string.

Parameters

env

the EnvironmentSurrogate to encode.

the type of [PositionSurrogate].