fromMap static method
override
Construct from Map.
Implementation
static NetworkType? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'networkTypeOther':
return NetworkTypeOther.fromMap(_map);
case 'networkTypeMobile':
return NetworkTypeMobile.fromMap(_map);
case 'networkTypeWiFi':
return NetworkTypeWiFi.fromMap(_map);
case 'networkTypeNone':
return NetworkTypeNone.fromMap(_map);
case 'networkTypeMobileRoaming':
return NetworkTypeMobileRoaming.fromMap(_map);
case null:
default:
return null;
}
}