PatchInstanceFilter.fromJson constructor

PatchInstanceFilter.fromJson(
  1. Map json_
)

Implementation

PatchInstanceFilter.fromJson(core.Map json_)
    : this(
        all: json_.containsKey('all') ? json_['all'] as core.bool : null,
        groupLabels: json_.containsKey('groupLabels')
            ? (json_['groupLabels'] as core.List)
                .map((value) => PatchInstanceFilterGroupLabel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        instanceNamePrefixes: json_.containsKey('instanceNamePrefixes')
            ? (json_['instanceNamePrefixes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        instances: json_.containsKey('instances')
            ? (json_['instances'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        zones: json_.containsKey('zones')
            ? (json_['zones'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );