fromMap static method
override
Construct from Map.
Implementation
static CallState? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'callStateError':
return CallStateError.fromMap(_map);
case 'callStateDiscarded':
return CallStateDiscarded.fromMap(_map);
case 'callStateExchangingKeys':
return CallStateExchangingKeys.fromMap(_map);
case 'callStatePending':
return CallStatePending.fromMap(_map);
case 'callStateReady':
return CallStateReady.fromMap(_map);
case 'callStateHangingUp':
return CallStateHangingUp.fromMap(_map);
case null:
default:
return null;
}
}