ResourceFilter.fromJson constructor

ResourceFilter.fromJson(
  1. Map json_
)

Implementation

ResourceFilter.fromJson(core.Map json_)
    : this(
        gceInstanceFilter: json_.containsKey('gceInstanceFilter')
            ? GceInstanceFilter.fromJson(json_['gceInstanceFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        inclusionLabels: json_.containsKey('inclusionLabels')
            ? (json_['inclusionLabels']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        resourceIdPatterns: json_.containsKey('resourceIdPatterns')
            ? (json_['resourceIdPatterns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );