Sheet.fromJson constructor

Sheet.fromJson(
  1. Map json_
)

Implementation

Sheet.fromJson(core.Map json_)
    : this(
        bandedRanges: json_.containsKey('bandedRanges')
            ? (json_['bandedRanges'] as core.List)
                .map((value) => BandedRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        basicFilter: json_.containsKey('basicFilter')
            ? BasicFilter.fromJson(
                json_['basicFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        charts: json_.containsKey('charts')
            ? (json_['charts'] as core.List)
                .map((value) => EmbeddedChart.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        columnGroups: json_.containsKey('columnGroups')
            ? (json_['columnGroups'] as core.List)
                .map((value) => DimensionGroup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        conditionalFormats: json_.containsKey('conditionalFormats')
            ? (json_['conditionalFormats'] as core.List)
                .map((value) => ConditionalFormatRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        data: json_.containsKey('data')
            ? (json_['data'] as core.List)
                .map((value) => GridData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        developerMetadata: json_.containsKey('developerMetadata')
            ? (json_['developerMetadata'] as core.List)
                .map((value) => DeveloperMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        filterViews: json_.containsKey('filterViews')
            ? (json_['filterViews'] as core.List)
                .map((value) => FilterView.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        merges: json_.containsKey('merges')
            ? (json_['merges'] as core.List)
                .map((value) => GridRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        properties: json_.containsKey('properties')
            ? SheetProperties.fromJson(
                json_['properties'] as core.Map<core.String, core.dynamic>)
            : null,
        protectedRanges: json_.containsKey('protectedRanges')
            ? (json_['protectedRanges'] as core.List)
                .map((value) => ProtectedRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rowGroups: json_.containsKey('rowGroups')
            ? (json_['rowGroups'] as core.List)
                .map((value) => DimensionGroup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        slicers: json_.containsKey('slicers')
            ? (json_['slicers'] as core.List)
                .map((value) => Slicer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );