factory TlsConfig.fromJson(Map<String, dynamic> json) { return TlsConfig( serverNameToVerify: json['serverNameToVerify'] as String?, ); }