OSPolicy.fromJson constructor

OSPolicy.fromJson(
  1. Map json_
)

Implementation

OSPolicy.fromJson(core.Map json_)
    : this(
        allowNoResourceGroupMatch:
            json_.containsKey('allowNoResourceGroupMatch')
                ? json_['allowNoResourceGroupMatch'] as core.bool
                : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
        resourceGroups: json_.containsKey('resourceGroups')
            ? (json_['resourceGroups'] as core.List)
                .map((value) => OSPolicyResourceGroup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );