pub fn js_option_string(obj: &JsValue, key: &str) -> Option<String>
Read an optional string field from a JS object (helper for the SDK).