GoogleSecuritySafebrowsingV4ThreatInfo.fromJson constructor

GoogleSecuritySafebrowsingV4ThreatInfo.fromJson(
  1. Map json_
)

Implementation

GoogleSecuritySafebrowsingV4ThreatInfo.fromJson(core.Map json_)
    : this(
        platformTypes: json_.containsKey('platformTypes')
            ? (json_['platformTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        threatEntries: json_.containsKey('threatEntries')
            ? (json_['threatEntries'] as core.List)
                .map((value) =>
                    GoogleSecuritySafebrowsingV4ThreatEntry.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        threatEntryTypes: json_.containsKey('threatEntryTypes')
            ? (json_['threatEntryTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        threatTypes: json_.containsKey('threatTypes')
            ? (json_['threatTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );