GoogleCloudAssuredworkloadsV1Workload.fromJson constructor

GoogleCloudAssuredworkloadsV1Workload.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAssuredworkloadsV1Workload.fromJson(core.Map json_)
    : this(
        billingAccount: json_.containsKey('billingAccount')
            ? json_['billingAccount'] as core.String
            : null,
        complianceRegime: json_.containsKey('complianceRegime')
            ? json_['complianceRegime'] as core.String
            : null,
        complianceStatus: json_.containsKey('complianceStatus')
            ? GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus.fromJson(
                json_['complianceStatus']
                    as core.Map<core.String, core.dynamic>)
            : null,
        compliantButDisallowedServices:
            json_.containsKey('compliantButDisallowedServices')
                ? (json_['compliantButDisallowedServices'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        ekmProvisioningResponse: json_.containsKey('ekmProvisioningResponse')
            ? GoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse
                .fromJson(json_['ekmProvisioningResponse']
                    as core.Map<core.String, core.dynamic>)
            : null,
        enableSovereignControls: json_.containsKey('enableSovereignControls')
            ? json_['enableSovereignControls'] as core.bool
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        kajEnrollmentState: json_.containsKey('kajEnrollmentState')
            ? json_['kajEnrollmentState'] as core.String
            : null,
        kmsSettings: json_.containsKey('kmsSettings')
            ? GoogleCloudAssuredworkloadsV1WorkloadKMSSettings.fromJson(
                json_['kmsSettings'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partner: json_.containsKey('partner')
            ? json_['partner'] as core.String
            : null,
        partnerPermissions: json_.containsKey('partnerPermissions')
            ? GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions
                .fromJson(json_['partnerPermissions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        provisionedResourcesParent:
            json_.containsKey('provisionedResourcesParent')
                ? json_['provisionedResourcesParent'] as core.String
                : null,
        resourceMonitoringEnabled:
            json_.containsKey('resourceMonitoringEnabled')
                ? json_['resourceMonitoringEnabled'] as core.bool
                : null,
        resourceSettings: json_.containsKey('resourceSettings')
            ? (json_['resourceSettings'] as core.List)
                .map((value) =>
                    GoogleCloudAssuredworkloadsV1WorkloadResourceSettings
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resources: json_.containsKey('resources')
            ? (json_['resources'] as core.List)
                .map((value) =>
                    GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        saaEnrollmentResponse: json_.containsKey('saaEnrollmentResponse')
            ? GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse
                .fromJson(json_['saaEnrollmentResponse']
                    as core.Map<core.String, core.dynamic>)
            : null,
        violationNotificationsEnabled:
            json_.containsKey('violationNotificationsEnabled')
                ? json_['violationNotificationsEnabled'] as core.bool
                : null,
      );