Config.fromJson constructor
Implementation
factory Config.fromJson(Map<String, dynamic> json) => Config(
nick: json['nick'] as String,
username: json['username'] == null ? null : json['username'] as String,
realname: json['realname'] == null ? null : json['realname'] as String,
password: json['password'] == null ? null : json['password'] as String,
sasl: json['sasl'] == null ? null : SaslCredentials.fromJson(json['sasl'] as Map<String, dynamic>),
retention: json['retention'] == null ? null : json['retention'] as int,
alt_nicks: json['alt_nicks'] == null ? null : (json['alt_nicks'] as List).map((e) => e as String).toList(),
);