fromMap static method
override
Construct from Map.
Implementation
static SessionType? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'sessionTypeEdge':
return SessionTypeEdge.fromMap(_map);
case 'sessionTypeUbuntu':
return SessionTypeUbuntu.fromMap(_map);
case 'sessionTypeWindows':
return SessionTypeWindows.fromMap(_map);
case 'sessionTypeIpad':
return SessionTypeIpad.fromMap(_map);
case 'sessionTypeBrave':
return SessionTypeBrave.fromMap(_map);
case 'sessionTypeIphone':
return SessionTypeIphone.fromMap(_map);
case 'sessionTypeMac':
return SessionTypeMac.fromMap(_map);
case 'sessionTypeUnknown':
return SessionTypeUnknown.fromMap(_map);
case 'sessionTypeSafari':
return SessionTypeSafari.fromMap(_map);
case 'sessionTypeLinux':
return SessionTypeLinux.fromMap(_map);
case 'sessionTypeOpera':
return SessionTypeOpera.fromMap(_map);
case 'sessionTypeAndroid':
return SessionTypeAndroid.fromMap(_map);
case 'sessionTypeXbox':
return SessionTypeXbox.fromMap(_map);
case 'sessionTypeFirefox':
return SessionTypeFirefox.fromMap(_map);
case 'sessionTypeVivaldi':
return SessionTypeVivaldi.fromMap(_map);
case 'sessionTypeChrome':
return SessionTypeChrome.fromMap(_map);
case 'sessionTypeApple':
return SessionTypeApple.fromMap(_map);
case null:
default:
return null;
}
}