fromMap static method
override
Construct from Map.
Implementation
static InputBackground? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'inputBackgroundLocal':
return InputBackgroundLocal.fromMap(_map);
case 'inputBackgroundPrevious':
return InputBackgroundPrevious.fromMap(_map);
case 'inputBackgroundRemote':
return InputBackgroundRemote.fromMap(_map);
case null:
default:
return null;
}
}