GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse.fromJson constructor

GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse.fromJson(
  1. Map json_
)

Implementation

GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse.fromJson(
    core.Map json_)
    : this(
        additions: json_.containsKey('additions')
            ? (json_['additions'] as core.List)
                .map((value) =>
                    GoogleSecuritySafebrowsingV4ThreatEntrySet.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        checksum: json_.containsKey('checksum')
            ? GoogleSecuritySafebrowsingV4Checksum.fromJson(
                json_['checksum'] as core.Map<core.String, core.dynamic>)
            : null,
        newClientState: json_.containsKey('newClientState')
            ? json_['newClientState'] as core.String
            : null,
        platformType: json_.containsKey('platformType')
            ? json_['platformType'] as core.String
            : null,
        removals: json_.containsKey('removals')
            ? (json_['removals'] as core.List)
                .map((value) =>
                    GoogleSecuritySafebrowsingV4ThreatEntrySet.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        responseType: json_.containsKey('responseType')
            ? json_['responseType'] as core.String
            : null,
        threatEntryType: json_.containsKey('threatEntryType')
            ? json_['threatEntryType'] as core.String
            : null,
        threatType: json_.containsKey('threatType')
            ? json_['threatType'] as core.String
            : null,
      );