decodeEnvironmentSurrogate
fun Json.decodeEnvironmentSurrogate(env: String): EnvironmentSurrogate<Any, PositionSurrogate>(source)
Decode the JSON string to an EnvironmentSurrogate using the EnvironmentSurrogate.polymorphicSerializer to deserialize the concentrations.
Return
the corresponding EnvironmentSurrogate.
Parameters
env
the String to decode.