Select Git revision
DispatchMessageFromWorkerEvent.cs
-
Frederik Carlier authored
- Set NullValueHandling to NullValueHandling.Ignore, so that null values are not serialized - If .NET primitive types (like bool or long) are optional, use nulltable types, so that they can be ignored when serializing
Frederik Carlier authored- Set NullValueHandling to NullValueHandling.Ignore, so that null values are not serialized - If .NET primitive types (like bool or long) are optional, use nulltable types, so that they can be ignored when serializing
Scroll.cs 702 B
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
[Serializable]
public class Declaration
{
public string name;
public string isProof;
public string value;
public string identifier;
public string description;
}
[Serializable]
public class Scroll
{
public string problemTheory;
public string solutionTheory;
public string label;
public string description;
public Declaration[] declarations;
//public string output;
public static Scroll generateFromJson(string json) {
return JsonUtility.FromJson<Scroll>(json);
}
public string toJson() {
return JsonUtility.ToJson(this);
}
}