${iServerJava6R_SupplyResult_Title}

${iServerJava6R_SupplyResult_Description}

        /// <summary>${iServerJava6R_SupplyResult_method_fromJson_D}</summary>
        /// <returns>${iServerJava6R_SupplyResult_method_fromJson_return}</returns>
        /// <param name="json">${iServerJava6R_SupplyResult_method_fromJson_param_jsonObject}</param>
        public static SupplyResult FromJson(JsonObject json)
        {
            if (json == null)
                return null;

            SupplyResult result = new SupplyResult();
            result.ActualResourceValue = (double)json["actualResourceValue"];
            result.AverageWeight = (double)json["averageWeight"];
            result.DemandCount = (int)json["demandCount"];
            result.MaxWeight = (double)json["maxWeight"];
            result.NodeID = (int)json["nodeID"];
            result.ResourceValue = (double)json["resourceValue"];
            result.TotalWeights = (double)json["totalWeights"];
            result.Type = (SupplyCenterType)Enum.Parse(typeof(SupplyCenterType), (string)json["type"], true);

            return result;
        }