CandlestickChartSpec.fromJson constructor

CandlestickChartSpec.fromJson(
  1. Map json_
)

Implementation

CandlestickChartSpec.fromJson(core.Map json_)
    : this(
        data: json_.containsKey('data')
            ? (json_['data'] as core.List)
                .map((value) => CandlestickData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        domain: json_.containsKey('domain')
            ? CandlestickDomain.fromJson(
                json_['domain'] as core.Map<core.String, core.dynamic>)
            : null,
      );