FilterView.fromJson constructor

FilterView.fromJson(
  1. Map json_
)

Implementation

FilterView.fromJson(core.Map json_)
    : this(
        criteria:
            (json_['criteria'] as core.Map<core.String, core.dynamic>?)?.map(
          (key, value) => core.MapEntry(
            key,
            FilterCriteria.fromJson(
                value as core.Map<core.String, core.dynamic>),
          ),
        ),
        filterSpecs: (json_['filterSpecs'] as core.List?)
            ?.map((value) => FilterSpec.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        filterViewId: json_['filterViewId'] as core.int?,
        namedRangeId: json_['namedRangeId'] as core.String?,
        range: json_.containsKey('range')
            ? GridRange.fromJson(
                json_['range'] as core.Map<core.String, core.dynamic>)
            : null,
        sortSpecs: (json_['sortSpecs'] as core.List?)
            ?.map((value) => SortSpec.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        title: json_['title'] as core.String?,
      );