fromMap static method

BackgroundTypeWallpaper? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static BackgroundTypeWallpaper? 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 is_blurred = _map['is_blurred']! as bool;
  var is_moving = _map['is_moving']! as bool;
  return BackgroundTypeWallpaper(
    extra: extra,
    clientId: clientId,
    is_blurred: is_blurred,
    is_moving: is_moving,
  );
}