fromMap static method
override
Construct from Map.
Implementation
static PremiumSource? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'premiumSourceStoryFeature':
return PremiumSourceStoryFeature.fromMap(_map);
case 'premiumSourceLimitExceeded':
return PremiumSourceLimitExceeded.fromMap(_map);
case 'premiumSourceFeature':
return PremiumSourceFeature.fromMap(_map);
case 'premiumSourceLink':
return PremiumSourceLink.fromMap(_map);
case 'premiumSourceSettings':
return PremiumSourceSettings.fromMap(_map);
case null:
default:
return null;
}
}