public static string Serialize(SecretJson model) { string json = JsonUtility.ToJson(model); return(json); }
public void Start() { this.secretString = Resources.Load <TextAsset>(this.secretFile.name).ToString(); this.secretJson = SecretJson.Deserialize(this.secretString); this.similarWordUrl = $"{this.secretJson.url}/similar-word/"; }
public static SecretJson Deserialize(string json) { SecretJson model = JsonUtility.FromJson <SecretJson>(json); return(model); }