OSPolicyAssignmentInstanceFilter.fromJson constructor

OSPolicyAssignmentInstanceFilter.fromJson(
  1. Map json_
)

Implementation

OSPolicyAssignmentInstanceFilter.fromJson(core.Map json_)
    : this(
        all: json_.containsKey('all') ? json_['all'] as core.bool : null,
        exclusionLabels: json_.containsKey('exclusionLabels')
            ? (json_['exclusionLabels'] as core.List)
                .map((value) => OSPolicyAssignmentLabelSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        inclusionLabels: json_.containsKey('inclusionLabels')
            ? (json_['inclusionLabels'] as core.List)
                .map((value) => OSPolicyAssignmentLabelSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        inventories: json_.containsKey('inventories')
            ? (json_['inventories'] as core.List)
                .map((value) =>
                    OSPolicyAssignmentInstanceFilterInventory.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );