fromJson

public static SafetySetting fromJson(String jsonString)

Deserializes a JSON string to a SafetySetting object.