PivotGroup.fromJson constructor

PivotGroup.fromJson(
  1. Map json_
)

Implementation

PivotGroup.fromJson(core.Map json_)
    : this(
        dataSourceColumnReference:
            json_.containsKey('dataSourceColumnReference')
                ? DataSourceColumnReference.fromJson(
                    json_['dataSourceColumnReference']
                        as core.Map<core.String, core.dynamic>)
                : null,
        groupLimit: json_.containsKey('groupLimit')
            ? PivotGroupLimit.fromJson(
                json_['groupLimit'] as core.Map<core.String, core.dynamic>)
            : null,
        groupRule: json_.containsKey('groupRule')
            ? PivotGroupRule.fromJson(
                json_['groupRule'] as core.Map<core.String, core.dynamic>)
            : null,
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        repeatHeadings: json_.containsKey('repeatHeadings')
            ? json_['repeatHeadings'] as core.bool
            : null,
        showTotals: json_.containsKey('showTotals')
            ? json_['showTotals'] as core.bool
            : null,
        sortOrder: json_.containsKey('sortOrder')
            ? json_['sortOrder'] as core.String
            : null,
        sourceColumnOffset: json_.containsKey('sourceColumnOffset')
            ? json_['sourceColumnOffset'] as core.int
            : null,
        valueBucket: json_.containsKey('valueBucket')
            ? PivotGroupSortValueBucket.fromJson(
                json_['valueBucket'] as core.Map<core.String, core.dynamic>)
            : null,
        valueMetadata: json_.containsKey('valueMetadata')
            ? (json_['valueMetadata'] as core.List)
                .map((value) => PivotGroupValueMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );