OSPolicyAssignment.fromJson constructor

OSPolicyAssignment.fromJson(
  1. Map json_
)

Implementation

OSPolicyAssignment.fromJson(core.Map json_)
    : this(
        baseline: json_.containsKey('baseline')
            ? json_['baseline'] as core.bool
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        instanceFilter: json_.containsKey('instanceFilter')
            ? OSPolicyAssignmentInstanceFilter.fromJson(
                json_['instanceFilter']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        osPolicies: json_.containsKey('osPolicies')
            ? (json_['osPolicies'] as core.List)
                .map((value) => OSPolicy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : null,
        revisionCreateTime: json_.containsKey('revisionCreateTime')
            ? json_['revisionCreateTime'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        rollout: json_.containsKey('rollout')
            ? OSPolicyAssignmentRollout.fromJson(
                json_['rollout'] as core.Map<core.String, core.dynamic>)
            : null,
        rolloutState: json_.containsKey('rolloutState')
            ? json_['rolloutState'] as core.String
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
      );