CallServerType.fromJson constructor

CallServerType.fromJson(
  1. Map<String, dynamic> json
)

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();
  }
}