fn to_json(&self) -> PyResult<String> {
        let serialized = serde_json::to_string(&self.internal)
            .map_err(|_| PyValueError::new_err("Cannot serialize SimulatorDevice to json"))?;
        Ok(serialized)
    }
/// Return the json representation of the SimulatorDevice.
///
/// Returns:
///     str: The serialized form of SimulatorDevice.
///
/// Raises:
///     ValueError: Cannot serialize SimulatorDevice to json.
Return the json representation of the SimulatorDevice.
Returns:
str: The serialized form of SimulatorDevice.

Cannot serialize SimulatorDevice to json.
Return the json representation of the SimulatorDevice . Returns : str : The serialized form of SimulatorDevice . Cannot serialize SimulatorDevice to json .
fn to_json(&self) -> PyResult<String> {
        let serialized = serde_json::to_string(&self.internal)
            .map_err(|_| PyValueError::new_err("Cannot serialize SimulatorDevice to json"))?;
        Ok(serialized)
    }
fn to_json ( & self ) -> PyResult < String > { let serialized = serde_json :: to_string ( & self . internal ) . map_err ( | _ | PyValueError :: new_err ( " " ) ) ? ; Ok ( serialized ) }
Return the json representation of the SimulatorDevice.
Return the json representation of the SimulatorDevice .
&self
&self