fromMap static method
override
Construct from Map.
Implementation
static ChatTheme? 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 name = _map['name']! as String;
var light_settings = ThemeSettings.fromMap(_map['light_settings'])!;
var dark_settings = ThemeSettings.fromMap(_map['dark_settings'])!;
return ChatTheme(
extra: extra,
clientId: clientId,
name: name,
light_settings: light_settings,
dark_settings: dark_settings,
);
}