ResourceFilter.fromJson constructor

ResourceFilter.fromJson(
  1. Map json_
)

Implementation

ResourceFilter.fromJson(core.Map json_)
    : this(
        groupKinds: json_.containsKey('groupKinds')
            ? (json_['groupKinds'] as core.List)
                .map((value) => GroupKind.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        jsonPath: json_.containsKey('jsonPath')
            ? json_['jsonPath'] as core.String
            : null,
        namespaces: json_.containsKey('namespaces')
            ? (json_['namespaces'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );