Decodes a JSON string, or throws E_PARAMS. Used by generated code.
E_PARAMS
String decodeString(Object? v, String f) => v is String ? v : throw BridgeError(BridgeErrorCode.params, '$f: expected a string');