WebRTCSettings.fromJsonFile constructor
Parses json; throws FormatException on a missing or mistyped field.
Implementation
WebRTCSettings.fromJsonFile(Map<String, dynamic> json)
: signalingServerUrl = _resolveSignalingServerUrl(
_requireString(json, 'signalingServerUrl'),
),
reconnectionTimeoutMs = _requireInt(json, 'reconnectionTimeoutMs'),
stunServers = _parseStringList(json, 'stunServers'),
turnServers = _parseStringList(json, 'turnServers'),
video = VideoSettings.fromJsonFile(_requireMap(json, 'video')),
texture = TextureSettings.fromJsonFile(_requireMap(json, 'texture')),
android = AndroidSettings.fromJsonFile(_requireMap(json, 'android'));