GoogleSecuritySafebrowsingV4ThreatMatch.fromJson constructor

GoogleSecuritySafebrowsingV4ThreatMatch.fromJson(
  1. Map json_
)

Implementation

GoogleSecuritySafebrowsingV4ThreatMatch.fromJson(core.Map json_)
  : this(
      cacheDuration: json_['cacheDuration'] as core.String?,
      platformType: json_['platformType'] as core.String?,
      threat: json_.containsKey('threat')
          ? GoogleSecuritySafebrowsingV4ThreatEntry.fromJson(
              json_['threat'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      threatEntryMetadata: json_.containsKey('threatEntryMetadata')
          ? GoogleSecuritySafebrowsingV4ThreatEntryMetadata.fromJson(
              json_['threatEntryMetadata']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      threatEntryType: json_['threatEntryType'] as core.String?,
      threatType: json_['threatType'] as core.String?,
    );