fromMap static method
override
Construct from Map.
Implementation
static CanSendStoryResult? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'canSendStoryResultPremiumNeeded':
return CanSendStoryResultPremiumNeeded.fromMap(_map);
case 'canSendStoryResultWeeklyLimitExceeded':
return CanSendStoryResultWeeklyLimitExceeded.fromMap(_map);
case 'canSendStoryResultBoostNeeded':
return CanSendStoryResultBoostNeeded.fromMap(_map);
case 'canSendStoryResultOk':
return CanSendStoryResultOk.fromMap(_map);
case 'canSendStoryResultMonthlyLimitExceeded':
return CanSendStoryResultMonthlyLimitExceeded.fromMap(_map);
case 'canSendStoryResultActiveStoryLimitExceeded':
return CanSendStoryResultActiveStoryLimitExceeded.fromMap(_map);
case null:
default:
return null;
}
}