CallServerType.fromJson constructor
a CallServerType return type can be :
Implementation
factory CallServerType.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case CallServerTypeTelegramReflector.CONSTRUCTOR:
return CallServerTypeTelegramReflector.fromJson(json);
case CallServerTypeWebrtc.CONSTRUCTOR:
return CallServerTypeWebrtc.fromJson(json);
default:
return const CallServerType();
}
}