public static SupplyCenter FromJson(JsonObject json)
{
if (json == null)
return null;
SupplyCenter result = new SupplyCenter();
result.MaxWeight = (double)json["maxWeight"];
result.NodeID = (int)json["nodeID"];
result.ResourceValue = (double)json["resourceValue"];
result.Type = (SupplyCenterType)Enum.Parse(typeof(SupplyCenterType), (string)json["type"], true);
return result;
}