HostsEntry.fromJson constructor

HostsEntry.fromJson(
  1. Map json_
)

Implementation

HostsEntry.fromJson(core.Map json_)
    : this(
        hostNames: json_.containsKey('hostNames')
            ? (json_['hostNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        ip: json_.containsKey('ip') ? json_['ip'] as core.String : null,
      );