fromMap static method
override
Construct from Map.
Implementation
static UserType? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'userTypeRegular':
return UserTypeRegular.fromMap(_map);
case 'userTypeBot':
return UserTypeBot.fromMap(_map);
case 'userTypeUnknown':
return UserTypeUnknown.fromMap(_map);
case 'userTypeDeleted':
return UserTypeDeleted.fromMap(_map);
case null:
default:
return null;
}
}