BubbleChartSpec.fromJson constructor

BubbleChartSpec.fromJson(
  1. Map json_
)

Implementation

BubbleChartSpec.fromJson(core.Map json_)
    : this(
        bubbleBorderColor: json_.containsKey('bubbleBorderColor')
            ? Color.fromJson(json_['bubbleBorderColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        bubbleBorderColorStyle: json_.containsKey('bubbleBorderColorStyle')
            ? ColorStyle.fromJson(json_['bubbleBorderColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        bubbleLabels: json_.containsKey('bubbleLabels')
            ? ChartData.fromJson(
                json_['bubbleLabels'] as core.Map<core.String, core.dynamic>)
            : null,
        bubbleMaxRadiusSize: json_.containsKey('bubbleMaxRadiusSize')
            ? json_['bubbleMaxRadiusSize'] as core.int
            : null,
        bubbleMinRadiusSize: json_.containsKey('bubbleMinRadiusSize')
            ? json_['bubbleMinRadiusSize'] as core.int
            : null,
        bubbleOpacity: json_.containsKey('bubbleOpacity')
            ? (json_['bubbleOpacity'] as core.num).toDouble()
            : null,
        bubbleSizes: json_.containsKey('bubbleSizes')
            ? ChartData.fromJson(
                json_['bubbleSizes'] as core.Map<core.String, core.dynamic>)
            : null,
        bubbleTextStyle: json_.containsKey('bubbleTextStyle')
            ? TextFormat.fromJson(json_['bubbleTextStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        domain: json_.containsKey('domain')
            ? ChartData.fromJson(
                json_['domain'] as core.Map<core.String, core.dynamic>)
            : null,
        groupIds: json_.containsKey('groupIds')
            ? ChartData.fromJson(
                json_['groupIds'] as core.Map<core.String, core.dynamic>)
            : null,
        legendPosition: json_.containsKey('legendPosition')
            ? json_['legendPosition'] as core.String
            : null,
        series: json_.containsKey('series')
            ? ChartData.fromJson(
                json_['series'] as core.Map<core.String, core.dynamic>)
            : null,
      );