PieChartSpec.fromJson constructor

PieChartSpec.fromJson(
  1. Map json_
)

Implementation

PieChartSpec.fromJson(core.Map json_)
    : this(
        domain: json_.containsKey('domain')
            ? ChartData.fromJson(
                json_['domain'] as core.Map<core.String, core.dynamic>)
            : null,
        legendPosition: json_.containsKey('legendPosition')
            ? json_['legendPosition'] as core.String
            : null,
        pieHole: json_.containsKey('pieHole')
            ? (json_['pieHole'] as core.num).toDouble()
            : null,
        series: json_.containsKey('series')
            ? ChartData.fromJson(
                json_['series'] as core.Map<core.String, core.dynamic>)
            : null,
        threeDimensional: json_.containsKey('threeDimensional')
            ? json_['threeDimensional'] as core.bool
            : null,
      );