GoogleCloudPolicyanalyzerV1Activity.fromJson constructor Null safety

GoogleCloudPolicyanalyzerV1Activity.fromJson(
  1. Map _json
)

Implementation

GoogleCloudPolicyanalyzerV1Activity.fromJson(core.Map _json)
    : this(
        activity: _json.containsKey('activity')
            ? _json['activity'] as core.Map<core.String, core.dynamic>
            : null,
        activityType: _json.containsKey('activityType')
            ? _json['activityType'] as core.String
            : null,
        fullResourceName: _json.containsKey('fullResourceName')
            ? _json['fullResourceName'] as core.String
            : null,
        observationPeriod: _json.containsKey('observationPeriod')
            ? GoogleCloudPolicyanalyzerV1ObservationPeriod.fromJson(
                _json['observationPeriod']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );