Indicator.fromJson constructor

Indicator.fromJson(
  1. Map json_
)

Implementation

Indicator.fromJson(core.Map json_)
    : this(
        domains: json_.containsKey('domains')
            ? (json_['domains'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        ipAddresses: json_.containsKey('ipAddresses')
            ? (json_['ipAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        signatures: json_.containsKey('signatures')
            ? (json_['signatures'] as core.List)
                .map((value) => ProcessSignature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        uris: json_.containsKey('uris')
            ? (json_['uris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );