WaterfallChartSpec.fromJson constructor

WaterfallChartSpec.fromJson(
  1. Map json_
)

Implementation

WaterfallChartSpec.fromJson(core.Map json_)
    : this(
        connectorLineStyle: json_.containsKey('connectorLineStyle')
            ? LineStyle.fromJson(json_['connectorLineStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        domain: json_.containsKey('domain')
            ? WaterfallChartDomain.fromJson(
                json_['domain'] as core.Map<core.String, core.dynamic>)
            : null,
        firstValueIsTotal: json_['firstValueIsTotal'] as core.bool?,
        hideConnectorLines: json_['hideConnectorLines'] as core.bool?,
        series: (json_['series'] as core.List?)
            ?.map((value) => WaterfallChartSeries.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        stackedType: json_['stackedType'] as core.String?,
        totalDataLabel: json_.containsKey('totalDataLabel')
            ? DataLabel.fromJson(json_['totalDataLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
      );