fromMap static method

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

Construct from Map.

Implementation

static GroupCallVideoQuality? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'groupCallVideoQualityMedium':
      return GroupCallVideoQualityMedium.fromMap(_map);
    case 'groupCallVideoQualityThumbnail':
      return GroupCallVideoQualityThumbnail.fromMap(_map);
    case 'groupCallVideoQualityFull':
      return GroupCallVideoQualityFull.fromMap(_map);
    case null:
    default:
      return null;
  }
}