encodeEnvironmentSurrogate
inline fun <TS : Any, PS : PositionSurrogate> Json.encodeEnvironmentSurrogate(env: EnvironmentSurrogate<TS, PS>): String
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.