ListOSPolicyAssignmentsResponse.fromJson constructor

ListOSPolicyAssignmentsResponse.fromJson(
  1. Map _json
)

Implementation

ListOSPolicyAssignmentsResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        osPolicyAssignments: _json.containsKey('osPolicyAssignments')
            ? (_json['osPolicyAssignments'] as core.List)
                .map<OSPolicyAssignment>((value) =>
                    OSPolicyAssignment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );