ScorecardChartSpec.fromJson constructor

ScorecardChartSpec.fromJson(
  1. Map json_
)

Implementation

ScorecardChartSpec.fromJson(core.Map json_)
    : this(
        aggregateType: json_.containsKey('aggregateType')
            ? json_['aggregateType'] as core.String
            : null,
        baselineValueData: json_.containsKey('baselineValueData')
            ? ChartData.fromJson(json_['baselineValueData']
                as core.Map<core.String, core.dynamic>)
            : null,
        baselineValueFormat: json_.containsKey('baselineValueFormat')
            ? BaselineValueFormat.fromJson(json_['baselineValueFormat']
                as core.Map<core.String, core.dynamic>)
            : null,
        customFormatOptions: json_.containsKey('customFormatOptions')
            ? ChartCustomNumberFormatOptions.fromJson(
                json_['customFormatOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        keyValueData: json_.containsKey('keyValueData')
            ? ChartData.fromJson(
                json_['keyValueData'] as core.Map<core.String, core.dynamic>)
            : null,
        keyValueFormat: json_.containsKey('keyValueFormat')
            ? KeyValueFormat.fromJson(json_['keyValueFormat']
                as core.Map<core.String, core.dynamic>)
            : null,
        numberFormatSource: json_.containsKey('numberFormatSource')
            ? json_['numberFormatSource'] as core.String
            : null,
        scaleFactor: json_.containsKey('scaleFactor')
            ? (json_['scaleFactor'] as core.num).toDouble()
            : null,
      );