anchor.diff:      else
         date = json["date"].substring(0,4)+"-"+json["date"].substring(4,6)+"-"+json["date"].substring(6,8);//json["date"];
   
  +    datetime = DateTime.parse(date);
       open = json["open"];//double.parse(json["open"]);
       high = json["high"];//double.parse(json["high"]);
       low  = json["low"];//double.parse(json["low"]);
  
positive.code:     time=json["time"];
    }
  
     Map toJsonMap()
     {
        return{"pair":pair,"date":date,"open":open,"high":high,"low":low,"close":close};
     }
  }
  
  
  
negative.code:     else
        date = vals[0].substring(0,4)+"-"+vals[0].substring(4,6)+"-"+vals[0].substring(6,8);
  
      datetime = DateTime.parse(date);
      open = double.parse(vals[1]);
      high = double.parse(vals[2]);
      low  = double.parse(vals[3]);
  