SlicerSpec.fromJson constructor

SlicerSpec.fromJson(
  1. Map json_
)

Implementation

SlicerSpec.fromJson(core.Map json_)
    : this(
        applyToPivotTables: json_.containsKey('applyToPivotTables')
            ? json_['applyToPivotTables'] as core.bool
            : null,
        backgroundColor: json_.containsKey('backgroundColor')
            ? Color.fromJson(json_['backgroundColor']
                as core.Map<core.String, core.dynamic>)
            : null,
        backgroundColorStyle: json_.containsKey('backgroundColorStyle')
            ? ColorStyle.fromJson(json_['backgroundColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        columnIndex: json_.containsKey('columnIndex')
            ? json_['columnIndex'] as core.int
            : null,
        dataRange: json_.containsKey('dataRange')
            ? GridRange.fromJson(
                json_['dataRange'] as core.Map<core.String, core.dynamic>)
            : null,
        filterCriteria: json_.containsKey('filterCriteria')
            ? FilterCriteria.fromJson(json_['filterCriteria']
                as core.Map<core.String, core.dynamic>)
            : null,
        horizontalAlignment: json_.containsKey('horizontalAlignment')
            ? json_['horizontalAlignment'] as core.String
            : null,
        textFormat: json_.containsKey('textFormat')
            ? TextFormat.fromJson(
                json_['textFormat'] as core.Map<core.String, core.dynamic>)
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );