Ohlc.fromJson constructor

Ohlc.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Ohlc.fromJson(Map<String, dynamic> json)
    : this.datein = formatter.parse(json['datein'].toString(), true),
      this.open = double.parse(ifNullReturnEmpty(json['open'])),
      this.high = double.parse(ifNullReturnEmpty(json['high'])),
      this.low = double.parse(ifNullReturnEmpty(json['low'])),
      this.close = double.parse(ifNullReturnEmpty(json['close']));