Whois.fromJson constructor
Implementation
factory Whois.fromJson(Map<String, dynamic> json) => Whois(
nick: json['nick'] as String,
username: json['username'] == null ? null : json['username'] as String,
host: json['host'] == null ? null : json['host'] as String,
realname: json['realname'] == null ? null : json['realname'] as String,
server: json['server'] == null ? null : json['server'] as String,
server_info: json['server_info'] == null ? null : json['server_info'] as String,
operator: json['operator'] == null ? null : json['operator'] as String,
idle_secs: json['idle_secs'] == null ? null : json['idle_secs'] as int,
signon_ms: json['signon_ms'] == null ? null : json['signon_ms'] as int,
channels: (json['channels'] as List).map((e) => e as String).toList(),
account: json['account'] == null ? null : json['account'] as String,
actual_host: json['actual_host'] == null ? null : json['actual_host'] as String,
secure: json['secure'] as bool,
complete: json['complete'] as bool,
);