internal static LoadCounter From(Dictionary <string, object> data, string field)
        {
            var obj = TinyJsonParser.GetMapField(data, field);

            return(new LoadCounter(
                       (long)(TinyJsonParser.GetNumberField(obj, "counter") ?? 0),
                       TinyJsonParser.GetNumberField(obj, "hz") ?? 0,
                       TinyJsonParser.GetNumberField(obj, "roughness") ?? 0
                       ));
        }
 protected double?GetDouble(string field1, string field2)
 {
     return(TinyJsonParser.GetNumberField(TinyJsonParser.GetMapField(m_data, field1), field2));
 }
 protected double?GetDouble(string field)
 {
     return(TinyJsonParser.GetNumberField(m_data, field));
 }
        protected long?GetInt64(string field1, string field2)
        {
            var x = TinyJsonParser.GetNumberField(TinyJsonParser.GetMapField(m_data, field1), field2);

            return(x.HasValue ? (long?)x.Value : null);
        }