fromMap static method
override
Construct from Map.
Implementation
static Background? 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 id = _map['id']! as int64;
var is_default = _map['is_default']! as bool;
var is_dark = _map['is_dark']! as bool;
var name = _map['name']! as String;
var document = Document.fromMap(_map['document']);
var type = BackgroundType.fromMap(_map['type'])!;
return Background(
extra: extra,
clientId: clientId,
id: id,
is_default: is_default,
is_dark: is_dark,
name: name,
document: document,
type: type,
);
}