CallProblem.fromJson constructor

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

Implementation

factory CallProblem.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case CallProblemEcho.CONSTRUCTOR:
      return CallProblemEcho.fromJson(json);
    case CallProblemNoise.CONSTRUCTOR:
      return CallProblemNoise.fromJson(json);
    case CallProblemInterruptions.CONSTRUCTOR:
      return CallProblemInterruptions.fromJson(json);
    case CallProblemDistortedSpeech.CONSTRUCTOR:
      return CallProblemDistortedSpeech.fromJson(json);
    case CallProblemSilentLocal.CONSTRUCTOR:
      return CallProblemSilentLocal.fromJson(json);
    case CallProblemSilentRemote.CONSTRUCTOR:
      return CallProblemSilentRemote.fromJson(json);
    case CallProblemDropped.CONSTRUCTOR:
      return CallProblemDropped.fromJson(json);
    case CallProblemDistortedVideo.CONSTRUCTOR:
      return CallProblemDistortedVideo.fromJson(json);
    case CallProblemPixelatedVideo.CONSTRUCTOR:
      return CallProblemPixelatedVideo.fromJson(json);
    default:
      return const CallProblem();
  }
}