Skip to main content

data_from_str

Function data_from_str 

pub fn data_from_str(data: &str) -> GameData
Expand description

Reads a json string and convert it to a GameData object.

If the data cannot be read a default GameData object is returned.