fromMap static method
override
Construct from Map.
Implementation
static ChatSource? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'chatSourcePublicServiceAnnouncement':
return ChatSourcePublicServiceAnnouncement.fromMap(_map);
case 'chatSourceMtprotoProxy':
return ChatSourceMtprotoProxy.fromMap(_map);
case null:
default:
return null;
}
}