fromMap static method
override
Construct from Map.
Implementation
static UserStatus? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'userStatusOnline':
return UserStatusOnline.fromMap(_map);
case 'userStatusEmpty':
return UserStatusEmpty.fromMap(_map);
case 'userStatusOffline':
return UserStatusOffline.fromMap(_map);
case 'userStatusLastMonth':
return UserStatusLastMonth.fromMap(_map);
case 'userStatusRecently':
return UserStatusRecently.fromMap(_map);
case 'userStatusLastWeek':
return UserStatusLastWeek.fromMap(_map);
case null:
default:
return null;
}
}