Filters.fromJson constructor

Filters.fromJson(
  1. Map json_
)

Implementation

Filters.fromJson(core.Map json_)
    : this(
        contentFilter: json_.containsKey('contentFilter')
            ? ContentFilter.fromJson(
                json_['contentFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        dateFilter: json_.containsKey('dateFilter')
            ? DateFilter.fromJson(
                json_['dateFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        excludeNonAppCreatedData:
            json_.containsKey('excludeNonAppCreatedData')
                ? json_['excludeNonAppCreatedData'] as core.bool
                : null,
        featureFilter: json_.containsKey('featureFilter')
            ? FeatureFilter.fromJson(
                json_['featureFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        includeArchivedMedia: json_.containsKey('includeArchivedMedia')
            ? json_['includeArchivedMedia'] as core.bool
            : null,
        mediaTypeFilter: json_.containsKey('mediaTypeFilter')
            ? MediaTypeFilter.fromJson(json_['mediaTypeFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
      );