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_.containsKey('firstValueIsTotal')
            ? json_['firstValueIsTotal'] as core.bool
            : null,
        hideConnectorLines: json_.containsKey('hideConnectorLines')
            ? json_['hideConnectorLines'] as core.bool
            : null,
        series: json_.containsKey('series')
            ? (json_['series'] as core.List)
                .map((value) => WaterfallChartSeries.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        stackedType: json_.containsKey('stackedType')
            ? json_['stackedType'] as core.String
            : null,
        totalDataLabel: json_.containsKey('totalDataLabel')
            ? DataLabel.fromJson(json_['totalDataLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
      );