Realm.fromJson constructor
Realm.fromJson(
- Object? json
Implementation
factory Realm.fromJson(Object? json) {
final map = asJsonMap(json, 'realm mask');
return Realm(
url: map['url'] as String?,
stunServers: (map['stunServers'] as List?)?.cast<String>(),
tlsConfig: map['tlsConfig'] == null
? null
: TLSConfig.fromJson(map['tlsConfig']),
);
}