encodeEnvironmentSurrogate

inline fun <TS : Any, PS : PositionSurrogate> <Error class: unknown class>.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.

the type of [PositionSurrogate].