DataLabel.fromJson constructor

DataLabel.fromJson(
  1. Map json_
)

Implementation

DataLabel.fromJson(core.Map json_)
    : this(
        customLabelData: json_.containsKey('customLabelData')
            ? ChartData.fromJson(json_['customLabelData']
                as core.Map<core.String, core.dynamic>)
            : null,
        placement: json_.containsKey('placement')
            ? json_['placement'] as core.String
            : null,
        textFormat: json_.containsKey('textFormat')
            ? TextFormat.fromJson(
                json_['textFormat'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );