fromMap static method

CallProblem? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static CallProblem? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'callProblemInterruptions':
      return CallProblemInterruptions.fromMap(_map);
    case 'callProblemDistortedVideo':
      return CallProblemDistortedVideo.fromMap(_map);
    case 'callProblemEcho':
      return CallProblemEcho.fromMap(_map);
    case 'callProblemDistortedSpeech':
      return CallProblemDistortedSpeech.fromMap(_map);
    case 'callProblemPixelatedVideo':
      return CallProblemPixelatedVideo.fromMap(_map);
    case 'callProblemSilentLocal':
      return CallProblemSilentLocal.fromMap(_map);
    case 'callProblemSilentRemote':
      return CallProblemSilentRemote.fromMap(_map);
    case 'callProblemNoise':
      return CallProblemNoise.fromMap(_map);
    case 'callProblemDropped':
      return CallProblemDropped.fromMap(_map);
    case null:
    default:
      return null;
  }
}