BasicChartAxis.fromJson constructor

BasicChartAxis.fromJson(
  1. Map json_
)

Implementation

BasicChartAxis.fromJson(core.Map json_)
    : this(
        format: json_.containsKey('format')
            ? TextFormat.fromJson(
                json_['format'] as core.Map<core.String, core.dynamic>)
            : null,
        position: json_.containsKey('position')
            ? json_['position'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        titleTextPosition: json_.containsKey('titleTextPosition')
            ? TextPosition.fromJson(json_['titleTextPosition']
                as core.Map<core.String, core.dynamic>)
            : null,
        viewWindowOptions: json_.containsKey('viewWindowOptions')
            ? ChartAxisViewWindowOptions.fromJson(json_['viewWindowOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );