fromMap static method
override
Construct from Map.
Implementation
static ChatBackground? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var background = Background.fromMap(_map['background'])!;
var dark_theme_dimming = _map['dark_theme_dimming']! as int;
return ChatBackground(
extra: extra,
clientId: clientId,
background: background,
dark_theme_dimming: dark_theme_dimming,
);
}