ContentFilter.fromJson constructor

ContentFilter.fromJson(
  1. Map json_
)

Implementation

ContentFilter.fromJson(core.Map json_)
    : this(
        excludedContentCategories:
            json_.containsKey('excludedContentCategories')
                ? (json_['excludedContentCategories'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        includedContentCategories:
            json_.containsKey('includedContentCategories')
                ? (json_['includedContentCategories'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
      );